public async Task <IActionResult> GetNotice(FJC_Notice fjc_notice)
        {
            try
            {
                var result = await _noticeService.GetNotice_Details(fjc_notice);

                return(Ok(Reformatter.Response_ArrayObject("Notice details retrieved successfully", ref result)));
            }
            catch (Exception ex)
            {
                return((new HandleCatches()).ManageExceptions(ex));
            }
        }
示例#2
0
        ////////////////Get For Notice Controller/////////////////
        public async Task <DataTable> GetNotice_Details(FJC_Notice fjc_notice)
        {
            Dictionary <string, object> dictRegis = new Dictionary <string, object>();

            dictRegis.Add("@issuer_name", fjc_notice.issuer_name);
            dictRegis.Add("@type", fjc_notice.type);
            dictRegis.Add("@start_date", fjc_notice.start_date);
            dictRegis.Add("@end_date", fjc_notice.end_date);

            DataSet ds = new DataSet();

            ds = await AppDBCalls.GetDataSet("Evote_notice_result_fetch", dictRegis);

            return(Reformatter.Validate_DataTable(ds.Tables[0]));
        }