public async Task <HttpResponseMessage> ProviderClientExceptionGeneral(ExceptionLogRequest clientException) { Services.Log.Warn("Mobile Provider Client General Exception [API]"); Services.Log.Warn(clientException.Exception); ExceptionEntry newException = new ExceptionEntry() { Id = Guid.NewGuid().ToString(), ExceptionText = clientException.Exception, Source = "MOBILE PROVIDER CLIENT" }; stranddContext context = new stranddContext(); context.ExceptionLog.Add(newException); await context.SaveChangesAsync(); string responseText; responseText = "Exception Logged in Service"; //Return Successful Response return(this.Request.CreateResponse(HttpStatusCode.OK, responseText)); }
public IPagedList <ExceptionLog> GetPagedExceptionLogs(ExceptionLogRequest request) { return(dataContext.GetTable <ExceptionLog>().ResolveRequest(request).GetPageData(request.PageIndex, request.PageSize)); }