public async Task <IActionResult> Post([FromBody] PlaceLogin place) { using (var plaze = new PlaceManager()) { return(Ok(await plaze.crearPlace(place))); } }
public IActionResult LoginBusiness(PlaceLogin placeLogin) { var owner = _userService.AuthenticateOwner(placeLogin.Email, placeLogin.Password); if (owner == null) { return(BadRequest("Invalid Email or Password")); } return(Ok(owner)); }