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); }
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); }