Exemplo n.º 1
0
        public async Task <IActionResult> PostLocation([FromBody] Location location)
        {
            _serviceEndPoint = new ServicesEndPoint(_unitOfWork, _emailService);
            bool result = await _serviceEndPoint.PostLocation(location);

            if (result)
            {
                return(Ok(result));
            }
            return(BadRequest());
        }