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); }
public static Settings.Model.Client ToModel(ClientVM vm) { return(Mapper.Map <Settings.Model.Client>(vm)); }