Example #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, int limit, int offset)
        {
            try
            {
                var response = await _reportsRepository.GetListReportCallByCustomerIdPagination(from_date, to_date, campaign_category_id, campaign_id, group_id, agent_id, region_id, limit, offset);

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