示例#1
0
        public async Task <bool> SavePersonBiography(string personId, string biographyText)
        {
            bool success = false;

            var biography = await _mgrFcc.GetPersonBiographyByPersonId(personId);

            if (biography != null)
            {
                biography.BiographyText = biographyText;
                await _mgrFcc.UpdatePersonBiography(biography);
            }
            else
            {
                biography               = new PersonBiography();
                biography.Id            = Guid.NewGuid().ToString();
                biography.BiographyText = biographyText;
                biography.PersonId      = personId;
                await _mgrFcc.SetPersonBiography(biography);
            }

            return(success);
        }