public ActionResult Edit(int id)
        {
            ViewBag.Head = "Manage Expence Name";
            ViewBag.Form = "Expence Name Updation";

            ExpenceNameModel model = new ExpenceNameModel();

            model = _rep.Get(id);

            return(View(model));
        }
        public ActionResult Edit(ExpenceNameModel model)
        {
            ViewBag.Head = "Manage Expence Name";
            ViewBag.Form = "Expence Name Updation";

            if (ModelState.IsValid)
            {
                try
                {
                    _rep.Edit(model);
                    return(RedirectToAction("Index"));
                }
                catch (Exception)
                {
                    throw;
                }
            }
            else
            {
                return(View(model));
            }
        }