private async void DeleteMember(object sender, EventArgs e) { var member = (Worker)BindingContext; if (await DisplayAlert("Удаление участника", "Вы уверены что хотите удалить?", "Да", "Нет")) { _worker.Delete(member); } await Navigation.PopAsync(); }
public void DeleteWorker(int WorkerId) { var Worker = WorkerRepository.GetById(WorkerId); WorkerRepository.Delete(Worker); }
public void Delete(Worker model) { _workerRepository.Delete(model); }
public ActionResult Delete(int workerId) { repo.Delete(workerId); return(RedirectToAction("GetAll")); }
public void Delete(int id) { _workerRepository.Delete(id); }