public void SaveWhereConditions(List <OutboundFilterJoinModel> filters, int datasetId)
        {
            List <TempOutboundFilterJoinConditions> OutboundFilterJoin = new List <TempOutboundFilterJoinConditions>();

            if (filters == null || filters.Count < 1)
            {
                _outgestionDAL.SaveFilterConditions(OutboundFilterJoin, datasetId);
                return;
            }
            foreach (OutboundFilterJoinModel model in filters)
            {
                TempOutboundFilterJoinConditions entity = new TempOutboundFilterJoinConditions
                {
                    Column1CoreDetailId = model.Column1CoreDetailId,
                    Column2CoreDetailId = model.Column2CoreDetailId,
                    WhereText           = model.WhereText,
                    Operator            = model.Operator,
                    Order       = model.Order,
                    CreatedBy   = model.CreatedBy,
                    CreatedDate = DateTime.Now
                };
                OutboundFilterJoin.Add(entity);
            }
            _outgestionDAL.SaveFilterConditions(OutboundFilterJoin, datasetId);
        }
        public void SaveJoinConditions(List <OutboundFilterJoinModel> filters, int datasetId)
        {
            List <TempOutboundFilterJoinConditions> OutboundFilterJoin = new List <TempOutboundFilterJoinConditions>();

            if (filters != null && filters.Count > 0)
            {
                foreach (OutboundFilterJoinModel model in filters)
                {
                    TempOutboundFilterJoinConditions entity = new TempOutboundFilterJoinConditions
                    {
                        Column1CoreDetailId = model.Column1CoreDetailId,
                        Column2CoreDetailId = model.Column2CoreDetailId,
                        JoinCondition       = model.JoinCondition,
                        Operator            = model.Operator,
                        Order       = model.Order,
                        CreatedBy   = model.CreatedBy,
                        CreatedDate = DateTime.Now
                    };
                    OutboundFilterJoin.Add(entity);
                }
            }
            _outgestionDAL.SaveJoinConditions(OutboundFilterJoin, datasetId);
        }