public Clinic PutMaintenance([FromBody] api.Maintenance maintenance) { try { var dbMaintenance = new Maintenance(); return(_context.AddNewMaintenance(_mapper.Map(maintenance, dbMaintenance))); } catch (System.Exception) { return(new Clinic()); } }
public api.Maintenance CreateMaintenance(string regionDivision, string screeningType) { try { var maintenance = new api.Maintenance(); return(_mapper.Map(_context.GetNewMaintenance(regionDivision, screeningType), maintenance)); } catch (System.Exception) { return(new api.Maintenance()); } }