public ActionResult EditFunction(FunctionVO functionVO) { var result = _functionService.EditFunction(functionVO); SessionReflash(); if (!string.IsNullOrEmpty(result)) { CurrentHttpContext.Response.StatusCode = (int)HttpStatusCode.BadRequest; return(Json(result, JsonRequestBehavior.AllowGet)); } else { CurrentHttpContext.Response.StatusCode = (int)HttpStatusCode.OK; } return(Json(result, JsonRequestBehavior.AllowGet)); }
public string EditFunction(FunctionVO functionVO) { var result = _functionService.EditFunction(functionVO); return(result); }