public JsonResult EditFeeType(FeeTypeModel model) { string result = "0"; if (model != null) { try { _feeManageService.UpdateFeeType(model.ToEntity <FeeType>()); result = "1"; } catch (Exception ex) { result = ex.Message; } } return(Json(result, JsonRequestBehavior.AllowGet)); }
public JsonResult CreateFeeType(FeeTypeModel model) { var result = new ResponseResult(); if (model != null) { try { _feeManageService.CreateFeeType(model.ToEntity <FeeType>()); result.Result = true; result.Message = "Success"; } catch (Exception ex) { result.Result = false; result.Message = ex.Message; } } return(Json(result, JsonRequestBehavior.AllowGet)); }