Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            PersonContact PersonContact = _PersonContactService.Find(id);

            _PersonContactService.Delete(id);


            _unitOfWork.Save();

            return(RedirectToAction("Index", new { Id = PersonContact.PersonId }).Success("Data deleted successfully"));
        }
Ejemplo n.º 2
0
 public async Task <bool> Delete(int id)
 {
     return(await personContactService.Delete(id));
 }