public HttpResponseMessage GetMiniStatment(HttpRequestMessage reqObject)
        {
            string             walletaccNo         = string.Empty;
            StatementDataModel _StatementDataModel = new StatementDataModel();

            _businessData = _IDataManipulation.GetBusinessData(reqObject);

            _requestedDataObject = _IDataManipulation.GetRequestedDataObject(reqObject);
            if (_requestedDataObject != null && _requestedDataObject.BusinessData != null)
            {
                _StatementDataModel = JsonConvert.DeserializeObject <StatementDataModel>(_requestedDataObject.BusinessData);
            }
            var result = _IMiniStatementService.GetMiniStatment(_StatementDataModel);

            //var result = _IOrganogramService.GetChannelMemberData("01913584138");

            if (result != null)
            {
                _serviceResponse = _IDataManipulation.SetResponseObject(result, "information has been fetched successfully");
            }
            else
            {
                _serviceResponse = _IDataManipulation.SetResponseObject(result, "Data Not Found...");
            }
            _response = _IDataManipulation.CreateResponse(_serviceResponse, reqObject);
            return(_response);
        }
Exemple #2
0
        public HttpResponseMessage GetAllAccCategory(HttpRequestMessage reqObject)
        {
            _businessData = _IDataManipulation.GetBusinessData(reqObject);
            var result = _IAccCategoryService.GetAllAccCategory();

            if (result != null)
            {
                _serviceResponse = _IDataManipulation.SetResponseObject(result, "information has been fetched successfully");
            }
            else
            {
                _serviceResponse = _IDataManipulation.SetResponseObject(result, "Account Groups Not Found...");
            }
            _response = _IDataManipulation.CreateResponse(_serviceResponse, reqObject);
            return(_response);
        }
Exemple #3
0
        public HttpResponseMessage GetAllUsbParam(HttpRequestMessage reqObject)
        {
            _businessData = _IDataManipulation.GetBusinessData(reqObject);
            var result = _IUsbParamService.GetAllUsbParam();

            if (result != null)
            {
                _serviceResponse = _IDataManipulation.ResopnseWhenDataFound(result, "information has been fetched successfully");
            }
            else
            {
                _serviceResponse = _IDataManipulation.ResopnseWhenDataNotFound("Account Groups Not Found...");
            }
            _response = _IDataManipulation.CreateResponse(_serviceResponse, reqObject);
            return(_response);
        }
Exemple #4
0
        public HttpResponseMessage GetDashBoardInfo(HttpRequestMessage reqObject)
        {
            LedgerTxn _Dashboard = new LedgerTxn();

            _businessData        = _IDataManipulation.GetBusinessData(reqObject);
            _requestedDataObject = _IDataManipulation.GetRequestedDataObject(reqObject);
            if (_requestedDataObject != null && _requestedDataObject.BusinessData != null)
            {
                _Dashboard = JsonConvert.DeserializeObject <LedgerTxn>(_requestedDataObject.BusinessData);
            }

            var result = _IDashboardService.GetDashBoardInfo(_Dashboard);

            if (result != null)
            {
                _serviceResponse = _IDataManipulation.SetResponseObject(result, "information has been fetched successfully");
            }
            else
            {
                _serviceResponse = _IDataManipulation.SetResponseObject(result, "Data Not Found...");
            }
            _response = _IDataManipulation.CreateResponse(_serviceResponse, reqObject);
            return(_response);
        }