public CustomerMaster_ViewModel GetDataListing() { CustomerMaster_ViewModel customermasterVM = new CustomerMaster_ViewModel(); List <KeyValuePair <string, string> > listing_Parameters = new List <KeyValuePair <string, string> >(); customermasterVM.lst_customerMaster = JsonConvert.DeserializeObject <List <CustomerMaster_DataModel> >(CustomerMaster.Get_Listing(listing_Parameters)); return(customermasterVM); }
public CustomerMaster_ViewModel GetDataById(int Id) { CustomerMaster_ViewModel customermasterVM = new CustomerMaster_ViewModel(); List <KeyValuePair <string, string> > getByID_Parameters = new List <KeyValuePair <string, string> >(); getByID_Parameters.Add(new KeyValuePair <string, string>("@Id", Convert.ToString(Id))); customermasterVM.customerMaster = JsonConvert.DeserializeObject <CustomerMaster_DataModel>(CustomerMaster.GetByID(getByID_Parameters)); return(customermasterVM); }