Esempio n. 1
0
        public async Task <ActionResult <CampResource> > Get(string moniker)
        {
            try
            {
                var result = await _campService.GetCampAsync(moniker);

                if (result == null)
                {
                    return(NotFound("Nothing found mer!!"));
                }

                return(Ok(result));
            }
            catch (Exception ex)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, "Error Occured when processing your request"));
            }
        }