C# Class Catbert4.Services.UserManagement.UnitService

Inheritance: IUnitService
Show file Open project: ucdavis/Catbert Class Usage Examples

Public Methods

Method Description
GetVisibleByUser ( string application, string login ) : IQueryable

Get all of the units associated with the given user, depending on role ManageAll: GetAllUnits ManageSchool: Get All Units which are associated with the user's schools ManageUnit: Get Just the units you are associated with

UnitService ( IRoleService roleService, IRepository schoolRepository, IRepository unitRepository, IRepository unitAssociationRespository ) : System.Linq

Private Methods

Method Description
GetVisibleByUserCore ( string application, string login ) : IQueryable

Method Details

GetVisibleByUser() public method

Get all of the units associated with the given user, depending on role ManageAll: GetAllUnits ManageSchool: Get All Units which are associated with the user's schools ManageUnit: Get Just the units you are associated with
public GetVisibleByUser ( string application, string login ) : IQueryable
application string
login string
return IQueryable

UnitService() public method

public UnitService ( IRoleService roleService, IRepository schoolRepository, IRepository unitRepository, IRepository unitAssociationRespository ) : System.Linq
roleService IRoleService
schoolRepository IRepository
unitRepository IRepository
unitAssociationRespository IRepository
return System.Linq