RoleProjectService.cs 582 B

123456789101112131415161718192021
  1. using Model.Entities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BizService
  8. {
  9. public class RoleProjectService : BaseService<RoleProject>, IRoleProjectService
  10. {
  11. public List<RoleProject> FindAllByRoleId(int roleId)
  12. {
  13. return base.GetList(x => x.RoleId == roleId);
  14. }
  15. public RoleProject FindByRoleIdAndPro(int roleId, int projectId)
  16. {
  17. return base.GetFirst(x => (x.RoleId == roleId)&&(x.ProjectId==projectId));
  18. }
  19. }
  20. }