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")); }
public async void Register(Login login) { var member = await acountService.Register(login); }