Пример #1
0
        public async Task <HttpResponseMessage> FindALLRecords()
        {
            try
            {
                var IP = HttpHelpers.GetClientIp(Request);

                return(Request.CreateResponse <IEnumerable <Accounts> >(HttpStatusCode.OK, await _repo.FindALLRecords()));
            }
            catch (Exception ex)
            {
                Logger.LogExceptionOnControllers(ex, System.Reflection.MethodBase.GetCurrentMethod().Name);
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
            }
        }