Agribusiness.Web.Controllers.PersonController.GetvCard C# (CSharp) Method

GetvCard() public method

Get a vcard for a person
public GetvCard ( int id ) : System.Web.Mvc.FileResult
id int Person Id
return System.Web.Mvc.FileResult
        public FileResult GetvCard(int id)
        {
            var person = _personRepository.GetNullableById(id);

            if (person == null) { return File(new byte[0], "text/x-vcard"); }

            var vCard = _vCardService.Create(person, Site);

            return File(vCard, "text/x-vcard", string.Format("{0}.vcf", person.FullName.Replace(" ", "").Replace(".", "")));
        }