Beispiel #1
0
        public Organisation GetOrgByUser(Guid userId)
        {
            UserEntity userentity = Users.FirstOrDefault(p => p.Id == userId);
            OrgEntity  orgentity  = Orgs.FirstOrDefault(p => p.Id == userentity.orgID);

            return(FromEntity.ToOrg(orgentity));
        }
Beispiel #2
0
        public Organisation GetOrgByUser(string username)
        {
            UserEntity userentity = Users.FirstOrDefault(p => p.Username == username);
            OrgEntity  orgentity  = Orgs.FirstOrDefault(p => p.Id == userentity.orgID);

            return(FromEntity.ToOrg(orgentity));
        }
Beispiel #3
0
        public int GetOrgIdByName(string orgName)
        {
            OrgEntity orgEntity = Orgs.FirstOrDefault(p => p.OrgName == orgName);

            return(orgEntity.Id);
        }
Beispiel #4
0
        public Organisation GetOrganisationNameById(int id)
        {
            OrgEntity orgentity = Orgs.FirstOrDefault(p => p.Id == id);

            return(FromEntity.ToOrg(orgentity));
        }
Beispiel #5
0
        public Organisation GetOrgByID(int id)
        {
            OrgEntity entity = Orgs.FirstOrDefault(x => x.Id == id);

            return(FromEntity.ToOrg(entity));
        }