public List <BusinessDTO> GetBusinessesBySearch(string companyname, string city, int?from, int?to, out int count) { var businessesBySearch = businessRepo.GetBusinessesBySearch(companyname, city, from, to, out count); return(BusinessAssembler.ToDTOs(businessesBySearch)); }
public List <BusinessDTO> Get() { return(BusinessAssembler.ToDTOs(businessRepo.GetBusinesss())); }