public static bool Delete(int roleId) { if (roleId <= 0) { return(false); } DeleteRoleRelation(roleId); return(dal.Delete(roleId)); }
public IActionResult DeleteUserRole(UserRoleModel uRole) { iuserrole.Delete(uRole); return(Ok(HttpStatusCode.OK)); }