Ejemplo n.º 1
0
        public ActionResult Delete(int id)
        {
            Beneficiary Beneficiary = beneficiaryService.Get(id);

            beneficiaryService.Delete(Beneficiary);
            beneficiaryService.Commit();
            return(RedirectToAction("Index", "Beneficiaries"));
        }
Ejemplo n.º 2
0
 public ActionResult <List <Beneficiary> > Get() => _beneficiaryServive.Get();