Пример #1
0
        public static Cli.UserprofilModel ToClient(this Glo.Userprofil obj)
        {
            Cli.UserprofilModel data = new Cli.UserprofilModel(obj.User_id, obj.Profil_id);
            data.Id = obj.Id;

            return(data);
        }
Пример #2
0
 public static Glo.Userprofil ToGlobal(this Cli.UserprofilModel obj)
 {
     return(new Glo.Userprofil()
     {
         Id = obj.Id,
         User_id = obj.User_id,
         Profil_id = obj.Profil_id
     });
 }