public ActionResult CreateFunctionWithTab(tbl_MCE_Function MCE_Function)
 {
     _function.AddFunction(MCE_Function);
     TempData["Success"] = "Data Inserted Successfully";
     ModelState.Clear();
     return(View());
 }
        public ActionResult DeleteFunction(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbl_MCE_Function function = _function.FunctionDetails((int)id);

            return(View(function));
        }
Example #3
0
        public string DeleteFunction(tbl_MCE_Function MCE_Function)
        {
            DynamicParameters param = new DynamicParameters();

            param.Add("@P_CHRACTION", "FUNCTIONDEL");
            param.Add("@P_intFunctionID", MCE_Function.intFunctionID);


            param.Add("@P_intCreatedBy", MCE_Function.intCreatedBy);


            param.Add("@P_VCHMSGOUT", dbType: DbType.String, direction: ParameterDirection.Output, size: 5215585);
            return(DapperORM.ExecuteDML("SP_MCE_Function_DLM", param, "@P_VCHMSGOUT"));
        }
Example #4
0
        public string EditFunction(tbl_MCE_Function MCE_Function)
        {
            DynamicParameters param = new DynamicParameters();

            param.Add("@P_CHRACTION", "FUNCTIONUP");
            param.Add("@P_intFunctionID", MCE_Function.intFunctionID);

            param.Add("@P_vchFunctionName", MCE_Function.vchFunctionName);
            param.Add("@P_vchFileName", MCE_Function.vchFileName);

            param.Add("@P_vchDescription", MCE_Function.vchDescription);
            param.Add("@P_vchAction1", MCE_Function.vchAction1);
            param.Add("@P_vchAction2", MCE_Function.vchAction2);
            param.Add("@P_vchAction3", MCE_Function.vchAction3);
            param.Add("@P_vchRemarks", MCE_Function.vchRemarks);


            param.Add("@P_VCHMSGOUT", dbType: DbType.String, direction: ParameterDirection.Output, size: 5215585);
            return(DapperORM.ExecuteDML("SP_MCE_Function_DLM", param, "@P_VCHMSGOUT"));
        }
 public ActionResult DeleteFunction(tbl_MCE_Function MCE_Function)
 {
     _function.DeleteFunction(MCE_Function);
     TempData["Success"] = "Data Deleted Successfully";
     return(RedirectToAction("FunctionReport", "Function"));
 }
 public ActionResult Edit(tbl_MCE_Function MCE_Function)
 {
     _function.EditFunction(MCE_Function);
     TempData["Success"] = "Data Updated Successfully";
     return(RedirectToAction("FunctionReport", "function"));
 }