private async void DeleteMember(object sender, EventArgs e)
        {
            var member = (Worker)BindingContext;

            if (await DisplayAlert("Удаление участника", "Вы уверены что хотите удалить?", "Да", "Нет"))
            {
                _worker.Delete(member);
            }
            await Navigation.PopAsync();
        }
Example #2
0
        public void DeleteWorker(int WorkerId)
        {
            var Worker = WorkerRepository.GetById(WorkerId);

            WorkerRepository.Delete(Worker);
        }
Example #3
0
 public void Delete(Worker model)
 {
     _workerRepository.Delete(model);
 }
        public ActionResult Delete(int workerId)
        {
            repo.Delete(workerId);

            return(RedirectToAction("GetAll"));
        }
Example #5
0
 public void Delete(int id)
 {
     _workerRepository.Delete(id);
 }