コード例 #1
0
 public async Task <IActionResult> Post([FromBody] PlaceLogin place)
 {
     using (var plaze = new PlaceManager())
     {
         return(Ok(await plaze.crearPlace(place)));
     }
 }
コード例 #2
0
        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));
        }