public string MoveMenuItemService(MenuAndRolesModal menuAndRolesModal) { ServiceResult serviceResult = validateModalService.ValidateModalFieldsService <MenuAndRolesModal>(menuAndRolesModal); if (serviceResult.IsValidModal) { DbParam[] param = new DbParam[] { new DbParam(menuAndRolesModal.MenuName, typeof(System.String), "_menuName"), new DbParam(menuAndRolesModal.OldCatagory, typeof(System.String), "_oldSubCategory"), new DbParam(menuAndRolesModal.Category, typeof(System.String), "_subCategory") }; Result = db.ExecuteNonQuery("sp_ReOrderMenu", param, true); } return(Result); }
public IResponse <ApiResponse> MoveMenuItem([FromBody] MenuAndRolesModal menuAndRolesModal) { string Result = adminMasterService.MoveMenuItemService(menuAndRolesModal); return(BuildResponse(Result, System.Net.HttpStatusCode.OK)); }