public CleanerWindow() { InitializeComponent(); vm = new CleanerViewModel((cleaned) => { Cleaned = cleaned; this.Close(); }); this.DataContext = vm; }
public IHttpActionResult UpdateCleaner(CleanerViewModel model) { BranchOperationService.UpdateCleaner(model.ToServiceRequestModel()); return(Ok()); }
public async Task <IHttpActionResult> Update(CleanerViewModel model) { await WebApiService.Instance.PostAsync("branchoperation/cleaner/update", model); return(Ok()); }