public List <SdWorkDto> GetWorks(int serviceCategoryId) { return(SdWorkRepository.GetDtos(this.Repository.Context.SdWorks.Where(it => it.SdServiceCatId == serviceCategoryId)).ToList()); }
public List <SdWorkDto> GetWorks() { return(SdWorkRepository.GetDtos(this.Repository.Context.SdWorks).ToList()); }