public ActionResult TypeEdit([Form] InvoiceType i1)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    i1.Update();
                }

                return(RedirectToAction("Types"));
            }
            catch
            {
                return(View("Types"));
            }
        }