Exemple #1
0
        public async Task <ActionResult> Get(int id)
        {
            try
            {
                VerifyUser();

                var transport = await _otherService.GetSingleById(id);

                return(Ok(transport));
            }
            catch (Exception e)
            {
                var result = new ResultFormatter(API_VERSION, General.INTERNAL_ERROR_STATUS_CODE, e.Message)
                             .Fail();
                return(StatusCode(General.INTERNAL_ERROR_STATUS_CODE, result));
            }
        }