public ActionResult GetViewToEditFunction(int functionId) { var functionInfo = new FunctionInfo(); try { functionInfo = FunctionBL.GetFunctionById(functionId); } catch (Exception ex) { Logger.LogException(ex); } return(PartialView("~/Areas/ModuleUsersAndRoles/Views/Function/_PartialEditFunction.cshtml", functionInfo)); }
public ActionResult ViewAllInnerFunction(int functionId) { var lstFunctionInfo = new List <FunctionInfo>(); try { var functionInfo = FunctionBL.GetFunctionById(functionId); ViewBag.CurrentFunction = functionInfo; lstFunctionInfo = FunctionBL.GetAllInnerFunctions(functionId); } catch (Exception ex) { Logger.LogException(ex); } return(PartialView("~/Areas/ModuleUsersAndRoles/Views/Function/_PartialViewAllInnerFunctions.cshtml", lstFunctionInfo)); }