예제 #1
0
        public HttpResponseMessage GetPravice(int aplikacijaKLJ, int vlogaKLJ)
        {
            CRUDService         service = new CRUDService();
            HttpResponseMessage response;

            try
            {
                List <DVlogePravice> dto = service.GetPravice(aplikacijaKLJ, vlogaKLJ);
                response = Request.CreateResponse(HttpStatusCode.OK, dto);
            }catch (ApplicationException ex)
            {
                response = Request.CreateResponse(HttpStatusCode.InternalServerError, ex);
            }


            return(response);
        }