ToOrg() public static method

public static ToOrg ( OrgEntity entity ) : Organisation
entity OrgEntity
return Organisation
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 Organisation GetOrganisationNameById(int id)
        {
            OrgEntity orgentity = Orgs.FirstOrDefault(p => p.Id == id);

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

            return(FromEntity.ToOrg(entity));
        }