示例#1
0
        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;
            }
        }
示例#2
0
 public async Task <IActionResult> GetUsers()
 {
     return(Ok(await _serviceManageUser.GetUsers()));
 }