public async Task <IActionResult> Post([FromBody] Location locationObj)
        {
            _logger.LogInformation($"Create location for {locationObj.LocationName}");

            var _savedLocation = await _locationDAL.AddLocation(locationObj);

            if (_savedLocation)
            {
                return(Ok());
            }
            else
            {
                return(BadRequest());
            }
        }
Beispiel #2
0
 public async Task <Int32> Add(PostedLocation location)
 {
     return(await _dal.AddLocation(location));
 }