public IHttpActionResult GetSupplyRequestWithSuppliesAll() { var helper = new SupplyRequestsHelper(); var result = helper.GetSupplyRequestWithSuppliesAll(); if (result != null) { return(Ok(result)); } return(NotFound()); }
public IHttpActionResult GetSupplyRequestWithSuppliesHouse(int id) { var helper = new SupplyRequestsHelper(); var result = helper.GetSupplyRequestWithSuppliesByHousingUnit(id); if (result != null) { return(Ok(result)); } return(NotFound()); }
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)); }