public List <ApiCustomerModel> GetList() { List <ApiCustomerModel> customerList = new List <ApiCustomerModel>(); ApiCustomerModel customer1 = new ApiCustomerModel { ID = 1, Name = "Abc", Address = "Colombo", Tel = "094", Creditlimit = 2000 }; ApiCustomerModel customer2 = new ApiCustomerModel { ID = 2, Name = "Bcd", Address = "Panadura", Tel = "094", Creditlimit = 2500 }; customerList.Add(customer1); customerList.Add(customer2); return(customerList); }
public ApiCustomerModel Get(int id) { ApiCustomerModel customer = new ApiCustomerModel { ID = 1, Name = "Abc", Address = "Colombo", Tel = "094", Creditlimit = 2000 }; return(customer); }
public bool AddCustomer(ApiCustomerModel newCustomer) { return(true); }