public ActionResult Delete(int id)
        {
            Beneficiary Beneficiary = beneficiaryService.Get(id);

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