Exemplo n.º 1
0
 internal static C.Admin ToClient(this G.Admin admin)
 {
     if (admin == null)
     {
         return(null);
     }
     return(new C.Admin(
                admin.AdminId,
                admin.StartDate,
                admin.EndDate,
                admin.EmployeeId,
                admin.FirstName,
                admin.LastName,
                admin.Email,
                admin.Password,
                admin.RegNat,
                admin.HireDate,
                admin.Active,
                admin.Avatar,
                admin.City,
                admin.Street,
                admin.Number,
                admin.NumberBox,
                admin.ZipCode,
                admin.Country,
                admin.GSM,
                admin.BirthDate));
 }
Exemplo n.º 2
0
 internal static C.Admin ToLoginClient(this G.Admin admin)
 {
     if (admin == null)
     {
         return(null);
     }
     return(new C.Admin(admin.EmployeeId, admin.Email, admin.AdminId));
 }