internal static C.Project ToClient(this G.Project project) { if (project == null) { return(null); } return(new C.Project( project.Id, project.Name, project.Description, project.StartDate, project.EndDate, project.AdminId, project.ProjectManager)); }
internal static C.Project ToClient(this G.Project entity) { return(new C.Project(entity.Id, entity.Name, entity.Description, entity.Start, entity.End, entity.CreatorId, entity.ProjectManagerId)); }