public object GetAllMenu(UserCredential UC) { try { ModuleMasterBL obj = new ModuleMasterBL(); var result = obj.GetAllMenus(UC); return result; } catch (Exception ex) { return new Error() { IsError = true, Message = ex.Message }; } }
public object DeleteMenu([FromBody] ModuleParam PM) { try { ModuleMasterBL MB = new ModuleMasterBL(); var Result = MB.DeleteMenu(PM); return Result; } catch (Exception e) { return new Error() { IsError = true, Message = e.Message }; } }
public object GetMenuUnderModule([FromBody] ModuleParam P) { try { ModuleMasterBL obj = new ModuleMasterBL(); var result = obj.GetModuleWiseMenu(P); return result; } catch (Exception ex) { return new Error() { IsError = true, Message = ex.Message }; } }
public object GetChildMenuNames() { try { ModuleMasterBL obj = new ModuleMasterBL(); var result = obj.GetChildMenu(); return result; } catch (Exception e) { return new Error() { IsError = true, Message = e.Message }; } }
public object GetMenuModuleName() { try { ModuleMasterBL obj = new ModuleMasterBL(); var result = obj.GetModuleNames(); return(result); } catch (Exception e) { return(new Error() { IsError = true, Message = e.Message }); } }
public object GetChildMenuName([FromBody] ModuleParam M) { try { ModuleMasterBL obj = new ModuleMasterBL(); var result = obj.GetMenuNames(M); return(result); } catch (Exception e) { return(new Error() { IsError = true, Message = e.Message }); } }
public object SaveUpdate([FromBody] ModuleParam PM) { try { ModuleMasterBL MB = new ModuleMasterBL(); var Result = MB.SaveMenu(PM); return(Result); } catch (Exception e) { return(new Error() { IsError = true, Message = e.Message }); } }
public object GetSingleMenu([FromBody] ModuleParam MP) { try { ModuleMasterBL obj = new ModuleMasterBL(); var result = obj.GetSingleMenuBL(MP); return(result); } catch (Exception ex) { return(new Error() { IsError = true, Message = ex.Message }); } }