Exemplo n.º 1
0
        public async Task <List <ReportLivestockHistoryDetail> > LivestockHistoryDetail(ReportLivestockHistoryDetailRequest _request)
        {
            var __params = new
            {
                farmingSeasonId = _request.FarmingSeasonId,
                fromDate        = _request.FromDate,
                toDate          = _request.ToDate
            };
            var details = await CallStored <ReportLivestockHistoryDetail>("SP_Livestock_History_Detail", __params).ToListAsync();

            return(details);
        }
Exemplo n.º 2
0
 public async Task <List <ReportLivestockHistoryDetail> > LivestockHistoryDetail(ReportLivestockHistoryDetailRequest _request)
 {
     return(await svcReport.LivestockHistoryDetail(_request));
 }
Exemplo n.º 3
0
        public async Task <ActionResult> LivestockHistoryDetail([FromBody] ReportLivestockHistoryDetailRequest _model)
        {
            ResponseConsult <List <ReportLivestockHistoryDetail> > response = await PostAsJsonAsync <List <ReportLivestockHistoryDetail> >(URI_API.REPORT_LIVESTOCK_HISTORY_DETAIL, _model);

            return(Ok(response));
        }
Exemplo n.º 4
0
        public async Task <IActionResult> LivestockHistoryDetail([FromBody] ReportLivestockHistoryDetailRequest _request)
        {
            var result = await busReport.LivestockHistoryDetail(_request);

            return(Ok(context.WrapResponse(result)));
        }