public async Task <IHttpActionResult> Get([FromUri] PromotionCodeQuery data)
        {
            try
            {
                var res = await _uow.PromotionCode.Search(data);

                return(Ok(new { data = res.Item1, total = res.Item2 }));
            }
            catch (BusinessException ex)
            {
                return(BadRequest(ex.Message));
            }
            catch (Exception ex)
            {
                _log.Error(ex);
                return(BadRequest(this.General_Err));
            }
        }
 public async Task <Tuple <List <PromotionCodeSearchViewModel>, int> > Search(PromotionCodeQuery req)
 {
     return(await(_dbContext as Model.PunnelContext).msp_PromotionCode_Search(req));
 }