public void CreateUSerIfNotExist() { var users = _serviceManageUser.GetUsers().Result; if (!users.Any()) { var userDto = new UserDto() { Email = "*****@*****.**", Login = "******", Nome = "Admin", Senha = "Admin123" }; var user = _serviceManageUser.CreateUser(userDto).Result; } }
public async Task <IActionResult> GetUsers() { return(Ok(await _serviceManageUser.GetUsers())); }