public TeacherLecturesViewModel(IUserInterop userInterop, IControllerInterop controllerInterop, Dispatcher dispatcher, TeacherDTO teacher) : base(userInterop, controllerInterop, dispatcher) { this.originalEntity = teacher; this.Model = new TeacherModel(teacher); this.Model.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ModelPropertyChanged); }
public async Task AddTeacher(TeacherDTO teacher) { await httpClient.PostAsJsonAsync <TeacherDTO>("https://localhost:44383/api/teacher", teacher); }