예제 #1
0
        public async Task <IActionResult> GetListReportCallByCustomerId(DateTime?from_date, DateTime?to_date, string campaign_category_id, string campaign_id, string group_id, string agent_id, string region_id)
        {
            try
            {
                var response = await _reportsRepository.GetListReportCallByCustomerId(from_date, to_date, campaign_category_id, campaign_id, group_id, agent_id, region_id);

                return(Ok(new ResponseListForm <object>(response)));
            }
            catch (Exception e)
            {
                return(StatusCode(400, new { code = 400, message = e.Message, data = (object)null }));
            }
        }