private void FindSubscriptions() { if (!string.IsNullOrEmpty(MobileSearchText)) { ChitDueList = chitDueService.FindByMobile(MobileSearchText); } else if (!string.IsNullOrEmpty(NameSearchText)) { ChitDueList = chitDueService.FindByCustomerName(NameSearchText); } else { Message = "Enter mobile Number or messsage"; } if (ChitDueList.Count == 0) { Message = "Cannot find given text"; } }
public IList <CustomerDueDomain> GetSubscriptions(string number) { return(_chitDueService.FindByMobile(number)); }