public static List <BusinessDTO> GetBusinessByCategoryCode(int code) { List <Business__tbl> busniessListDal = DAL.BusinessDAL.GetBusinessByCategoryCode(code); List <BusinessDTO> busniessDTOs = BusinessDTO.ListToDTO(busniessListDal); return(busniessDTOs); }
public static List <BusinessDTO> GetBusinessByOwnerCode(string code) { List <Business__tbl> busniessListDal = DAL.BusinessDAL.GetBusinessByOwnerCode(code); List <BusinessDTO> busniessDTOs = BusinessDTO.ListToDTO(busniessListDal); return(busniessDTOs); }
public static List <BusinessDTO> GetAllBusiness() { List <Business__tbl> busniessListDal = DAL.BusinessDAL.GetAllBusiness(); List <BusinessDTO> busniessDTOs = BusinessDTO.ListToDTO(busniessListDal); return(busniessDTOs); }