protected override async Task OnItemSelectAsync(Options <Loan> item) { DetailViewModel.Mode = DetailMode.Delete; Locator.Main.GoTo(DetailViewModel); var result = await DetailViewModel.DeleteItemAsync(item.MapTo <Loan, LoanViewModel>()); if (result?.IsChanged ?? false) { var loan = Managers.Repositories.Loans.Get(result.Value.Id); loan.ReturnedAt = DateTimeOffset.Now; Managers.Repositories.Loans.Update(loan); Managers.Save(); } Locator.Main.GoBack(); DetailViewModel.Mode = DetailMode.View; }