public void Add(ResidentEntity resident) { try { MockResidentDBContext.Residents.Add(mapper.MapToResidentData(resident)); } catch (Exception) { logger.LogError("Error occoured in ResidentRepository.Add"); throw; } //SaveChanges if context is used }
public void Add(ResidentEntity resident) { try { MockResidentDBContext.Residents.Add(mapper.MapToResidentData(resident)); } catch (Exception) { logger.LogError("Error occoured in ResidentRepository.Add"); throw; } //SaveChanges if context is used }