示例#1
0
        public IHttpActionResult AppectLocationSuggestion(int suggestionId)
        {
            try
            {
                bool result = _locationService.AcceptStatusLocationSuggestion(suggestionId);
                if (result)
                {
                    return(Ok());
                }
                else
                {
                    return(BadRequest());
                }
            }
            catch (Exception ex)
            {
                _loggingService.Write(GetType().Name, nameof(AppectLocationSuggestion), ex);

                return(InternalServerError(ex));
            }
        }