Example #1
0
        public static ClientVM FromModel(Settings.Model.Client m = null)
        {
            ClientVM vm;

            if (m == null)
            {
                vm = new ClientVM();
            }
            else
            {
                vm = Mapper.Map <ClientVM>(m);
            }
            return(vm);
        }
Example #2
0
 public static Settings.Model.Client ToModel(ClientVM vm)
 {
     return(Mapper.Map <Settings.Model.Client>(vm));
 }