//[Donators Page]List Donators (Recent)
        public IActionResult DonatorsRecent()
        {
            DonatorsPage        dn     = new DonatorsPage();
            List <DonatorsPage> dnList = dn.GetAllRecent();

            return(View(dnList));
        }
        //[Donators Page]Edit (Amount and Validate)
        public IActionResult EditMonetary(int mID)
        {
            if (mID <= 0)
            {
                return(RedirectToAction("Donators", "Funds4Safety"));
            }

            DonatorsPage dn = new DonatorsPage();

            dn = dn.GetMonetary(mID);

            if (dn.MonetaryID == 0)
            {
                return(RedirectToAction("Donators", "Funds4Safety"));
            }
            else
            {
                return(View(dn));
            }
        }
        //[Donators Page]Edit (First and Last Name)
        public IActionResult Edit(int uID)
        {
            if (uID <= 0)
            {
                return(RedirectToAction("Donators", "Funds4Safety"));
            }

            DonatorsPage dn = new DonatorsPage();

            dn = dn.Get(uID);

            if (dn.UserID == 0)
            {
                return(RedirectToAction("Donators", "Funds4Safety"));
            }
            else
            {
                return(View(dn));
            }
        }
 public IActionResult Delete(DonatorsPage model)
 {
     model.Delete();
     return(RedirectToAction("Donators", "Funds4Safety"));
 }
 public IActionResult EditMonetary(DonatorsPage model)
 {
     model.EditMonetary();
     return(RedirectToAction("Donators", "Funds4Safety"));
 }