예제 #1
0
 public void Post([FromForm] Place places)
 {
     _placeService.Add(places);
 }
        public async Task <IActionResult> AddPlace(ApplicationCore.Models.Request.Places places)
        {
            var result = await _placesService.Add(places);

            return(result != null?Ok(result) : NotFound("Please input your info"));
        }