public RolesDTO GetRoles() { RolesDTO rolesList = UserDBContext.GetRoles(); if (rolesList.Roles.Count() <= 0) { throw new NoRolesFoundException(); } else { return(rolesList); } }
public RolesDTO GetRoles() { RolesDTO rolesList = UserDBContext.GetRoles(); if (rolesList.Roles.Count() <= 0) { throw new NoRolesFoundException(); } else { return(rolesList); } }