Пример #1
0
        public GetEnquireModel GetEnquire(string chfid)
        {
            GetEnquireModel response;

            response = insureeRepository.GetEnquire(chfid);

            if (response != null)
            {
                response.PhotoBase64 = PhotoUtils.CreateBase64ImageFromFilepath(_configuration.GetValue <string>("AppSettings:UpdatedFolder"), response.PhotoPath);
            }

            return(response);
        }
Пример #2
0
        public FamilyModel GetByCHFID(string chfid, Guid userUUID)
        {
            FamilyModel response;

            response = familyRepository.GetByCHFID(chfid, userUUID);

            if (response != null)
            {
                foreach (var insure in response.Insurees)
                {
                    insure.PhotoBase64 = PhotoUtils.CreateBase64ImageFromFilepath(_configuration.GetValue <string>("AppSettings:UpdatedFolder"), insure.PhotoPath);
                }
            }

            return(response);
        }