Ejemplo n.º 1
0
        public CustomerAddressMaster_ViewModel GetDataListing()
        {
            CustomerAddressMaster_ViewModel       customerAddressMasterVM = new CustomerAddressMaster_ViewModel();
            List <KeyValuePair <string, string> > listing_Parameters      = new List <KeyValuePair <string, string> >();

            customerAddressMasterVM.lst_customerAddresMaster = JsonConvert.DeserializeObject <List <CustomerAddressMaster_DataModel> >(CustomerAddressMaster.Get_Listing(listing_Parameters));
            return(customerAddressMasterVM);
        }
Ejemplo n.º 2
0
        public CustomerAddressMaster_ViewModel GetDataById(int Id)
        {
            CustomerAddressMaster_ViewModel       customerAddressMasterVM = new CustomerAddressMaster_ViewModel();
            List <KeyValuePair <string, string> > getByID_Parameters      = new List <KeyValuePair <string, string> >();

            getByID_Parameters.Add(new KeyValuePair <string, string>("@Id", Convert.ToString(Id)));
            customerAddressMasterVM.customerAddresMaster = JsonConvert.DeserializeObject <CustomerAddressMaster_DataModel>(CustomerAddressMaster.GetByID(getByID_Parameters));
            return(customerAddressMasterVM);
        }