internal static ArmViewModel ToViewModel(this IArmDto arm)
 {
     return(new ArmViewModel
     {
         SerialNumber = arm.ArmId
     });
 }
Esempio n. 2
0
        public static Arm FromDto(IArmDto droid)
        {
            if (droid == null)
            {
                return(null);
            }

            return(new Arm(droid.ArmId));
        }