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