public IHttpActionResult GetBatchWithTenants(int id) { var helper = new BatchesHelpers(); var result = helper.GetBatchwithHousingAddress(id); if (result == null) { return(NotFound()); } return(Ok(result)); }
public IHttpActionResult GetBatch(int id) { var helper = new BatchesHelpers(); var result = helper.GetBatch(id); if (result == null) { return(NotFound()); } return(Ok(result)); }