コード例 #1
0
 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());
     }
 }
コード例 #2
0
 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());
     }
 }