public async void Save() { using (ActiveDetail.Busy.GetTicket()) await ActiveUnitOfWork.CommitAsync(); ActiveDetail.Start(ActiveStaffingResource.Id, EditMode.View); }
public void Cancel() { var shouldClose = ActiveStaffingResource.EntityFacts.EntityState.IsAdded(); ActiveUnitOfWork.Rollback(); if (shouldClose) { ActiveDetail.TryClose(); } else { ActiveDetail.Start(ActiveStaffingResource.Id, EditMode.View); } }
public void Edit() { ActiveDetail.Start(ActiveStaffingResource.Id, EditMode.Edit); }