public IActionResult Login([FromBody] UserLoginDTO dto) { UserLoginResultDTO response = this.LoginService.Login(dto); return(Ok(response)); }
public async Task <IActionResult> Post([FromBody] RegisterEstablishmentDTO dto) { UserLoginResultDTO response = await this.RegisterService.Register(dto); return(Ok(response)); }