public void DeleteRole(string roleName) { var role = roleDal.GetRoleByName(roleName).First(); if (role != null) { roleDal.DeleteRoleByName(roleName); usersRolesMapDal.DeleteUsersRolesMapByRoleId(role.Id); logger.Trace("Success"); } else { logger.Warn("Null role"); } }