public IEnumerable <Sale> GetListBySales(int salesId) { return(_Repository.FindBy(s => s.Id == salesId)); }
//public ProductViewModel GetProductViewModelById() //{ // productViewModel.ProducsCategories = _producsCategoryService.GetCategoryList(); // productViewModel.UOMs = _uomService.GetList(); // } public IEnumerable <Product> GetListName(string search) { return(_Repository.FindBy(s => s.Name.Contains(search))); }
public IEnumerable <Partner> GetListBy(int PartnerId) { return(_Repository.FindBy(s => s.Id == PartnerId)); }