Example #1
0
 public IHttpActionResult Get([FromUri] int cp_no, bool isReason)
 {
     try
     {
         object response;
         if (isReason)
         {
             response = carePlansSvc.GetCP_Reason(cp_no);
         }
         else
         {
             response = carePlansSvc.GetCP_Data(cp_no);
         }
         return(Ok(response));
     }
     catch (Exception ex)
     {
         LogHelper.WriteError(ex.ToString());
         return(Ok(new BaseResponse <string> {
             ResultCode = (int)EnumResponseStatus.ExceptionHappened, ResultMessage = "操作异常"
         }));
     }
 }