Example #1
0
        public CommonReturnType GetFundingandPayoutDashboard(string fund, string flg, string Fromdt, string Todate)
        {
            DataSet          dtdata = null;
            CommonReturnType cmd    = new CommonReturnType();

            try
            {
                string       xmldata = "";
                Sipdashboard obj     = Sipdashboard.GetInstance;
                obj.fund   = fund;
                obj.flg    = flg;
                obj.Fromdt = Fromdt;
                obj.Todate = Todate;
                xmldata    = BllCommonUtility.SerializeToXml(obj);
                using (KlocDalServiceClient dalObjecet = new KlocDalServiceClient())
                {
                    dtdata     = dalObjecet.GetFundingandPayoutDashboard(xmldata, fund);
                    cmd.Status = true;
                }
            }
            catch (Exception ex)
            {
                Util.WriteLog(ex.Source, ex.Message, ex.StackTrace);
                defMsg     = "An Error Accoured While Data Processing!";
                cmd.Status = false;
                dtdata     = Util.GetErrorcode("1", defMsg);
            }
            finally
            {
                cmd.JSONData = cmd.Serialize_JsonData(dtdata);
                cmd.ds       = dtdata;
            }
            return(cmd);
        }
Example #2
0
        public KlocModel.CommonReturnType GetAllFunds(string userid)
        {
            IncomingWebRequestContext request = WebOperationContext.Current.IncomingRequest;
            WebHeaderCollection       headers = request.Headers;

            DataSet          dtdata = null;
            CommonReturnType cmd    = new CommonReturnType();

            try
            {
                string      xmldata = "";
                NexPurchase obj     = new NexPurchase();
                obj.UserID = userid;
                xmldata    = BllCommonUtility.SerializeToXml(obj);
                using (KlocDalServiceClient dalObjecet = new KlocDalServiceClient())
                {
                    dtdata     = dalObjecet.GetAllFunds(xmldata);
                    cmd.Status = true;
                }
            }
            catch (Exception ex)
            {
                Util.WriteLog(ex.Source, ex.Message, ex.StackTrace);
                defMsg     = "An Error Accoured While Data Processing!";
                cmd.Status = false;
                dtdata     = Util.GetErrorcode("1", defMsg);
            }
            finally
            {
                cmd.JSONData = cmd.Serialize_JsonData(dtdata);
                cmd.ds       = dtdata;
            }
            return(cmd);
        }