Beispiel #1
0
        // APIs

        public HttpResponseMessage Get()
        {
            try
            {
                return(Request.CreateResponse(HttpStatusCode.OK, _applicationBase.GetAll().ToList()));
            }
            catch (Exception e)
            {
                return(Request.CreateResponse(HttpStatusCode.InternalServerError, e.Message));
            }
        }