Пример #1
0
 public HttpResponseMessage AddDepartTemplateReason(TemplateReasonDTO templateReason)
 {
     try
     {
         templateReason.ReasonId = -1;
         repository.AddOrUpdateTemplateReason(0, templateReason);
         return(ResponseWrapper.SuccessResponse("添加成功!"));
     }
     catch (Exception e)
     {
         return(ResponseWrapper.ExceptionResponse(e));
     }
 }