public async Task GetAllRolesTest(string name) { var created = await _roleBusiness.CreateRole(new Role { Name = name, Description = name, Permissions = new List <Permission>() }); var roles = await _roleBusiness.GetAllRoles(); Assert.NotEmpty(roles); }
public async Task <IActionResult> GetAllRoles() { var results = await _roleBusiness.GetAllRoles(); return(Ok(CommonResponse.Success(results))); }