示例#1
0
 internal static C.Team ToClient(this G.Team team)
 {
     if (team == null)
     {
         return(null);
     }
     return(new C.Team(team.Id, team.Name, team.CreateDate, team.ProjectId, team.TeamManagerId));
 }
        internal static C.Team ToClient(this G.Team entity)
        {
            List <C.Employee> Employees = new List <C.Employee>();

            if (!(entity.Employees is null))
            {
                foreach (G.Employee Employee in entity.Employees)
                {
                    Employees.Add(ToClient(Employee));
                }
            }
            return(new C.Team(entity.Id, entity.Name, entity.Created, entity.Disbanded, entity.Creator_Id, entity.Project_Id, Employees));
        }