Esempio n. 1
0
        public async Task <ActionResult> Register(AcountRegisterRequest register)
        {
            if (ModelState.IsValid)
            {
                var result = await _acountServices.Register(register);

                if (result.IsSuccess)
                {
                    return(Ok(result));
                }

                return(BadRequest(result));
            }

            return(BadRequest("Some properties are not valid"));
        }
Esempio n. 2
0
 public async void Register(Login login)
 {
     var member = await acountService.Register(login);
 }