public ActionResult Measure()
        {
            var measureRepo = new MeasureRepository();

            ViewBag.Id = 0;
            ViewBag.DocumentInstanceId = 0;
            ViewBag.Title        = "Measure";
            ViewBag.TypeName     = "Measure";
            ViewBag.SerialNumber = measureRepo.GetMaxSerialNumber();

            if (Request.IsAjaxRequest())
            {
                ViewBag.IsPopup = true;
                return(PartialView());
            }
            else
            {
                ViewBag.IsPopup = false;
                return(View());
            }
        }