예제 #1
0
        public IHttpActionResult GetSupplyRequestWithSuppliesAll()
        {
            var helper = new SupplyRequestsHelper();
            var result = helper.GetSupplyRequestWithSuppliesAll();

            if (result != null)
            {
                return(Ok(result));
            }

            return(NotFound());
        }
예제 #2
0
        public IHttpActionResult GetSupplyRequestWithSuppliesHouse(int id)
        {
            var helper = new SupplyRequestsHelper();
            var result = helper.GetSupplyRequestWithSuppliesByHousingUnit(id);

            if (result != null)
            {
                return(Ok(result));
            }

            return(NotFound());
        }
예제 #3
0
        public IHttpActionResult GetSupplyRequest(int id)
        {
            //SupplyRequest supplyRequest = db.SupplyRequests.Find(id);
            var helper = new SupplyRequestsHelper();
            var result = helper.GetSupplyRequest(id);

            if (result == null)
            {
                return(NotFound());
            }

            return(Ok(result));
        }