コード例 #1
0
        public IHttpActionResult GetBatchWithTenants(int id)
        {
            var helper = new BatchesHelpers();
            var result = helper.GetBatchwithHousingAddress(id);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }
コード例 #2
0
        public IHttpActionResult GetBatch(int id)
        {
            var helper = new BatchesHelpers();
            var result = helper.GetBatch(id);

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

            return(Ok(result));
        }