/// <summary>
 /// 插入数据
 /// </summary>
 /// <param name="model"></param>
 public IHttpActionResult Post(DeathRecordEntity model)
 {
     try
     {
         DeathRecordService service = new DeathRecordService();
         if (service.SaveEntity(model.PATIENTID, model) > 0)
         {
             return(Ok(true));
         }
         else
         {
             return(Ok(false));
         }
     }
     catch (Exception)
     {
         return(Ok(false));
     }
 }
 /// <summary>
 /// 更新数据,幂等
 /// </summary>
 /// <param name="key"></param>
 /// <param name="model"></param>
 public IHttpActionResult Put([FromODataUri] string key, DeathRecordEntity model)
 {
     try
     {
         DeathRecordService service = new DeathRecordService();
         if (service.UpdateEntity(model) > 0)
         {
             return(Ok(true));
         }
         else
         {
             return(Ok(false));
         }
     }
     catch (Exception)
     {
         return(Ok(false));
     }
 }