Example #1
0
 private static Phone ConvertPhoneVMtoPhone(PhoneVM vmPhone)
 {
     return(new Phone()
     {
         PhoneId = vmPhone.PhoneId,
         Type = (PhoneType)vmPhone.Type,
         Number = vmPhone.Number,
     });
 }
Example #2
0
        public ActionResult AddNewPhone()
        {
            var phone = new PhoneVM();

            return(PartialView("~/Views/Shared/EditorTemplates/PhoneVM.cshtml", phone));
        }