public ActionResult Modul()
        {
            modulRep modulRep = new modulRep();

            ViewBag.moduls   = modulRep.Moduls();
            ViewBag.predprin = modulRep.Predprins();
            return(View());
        }
        public PartialViewResult Modul(Zadacha zadacha)
        {
            modulRep     modulRep = new modulRep();
            Serializable ss       = new Serializable();

            using (Stream inputStream = zadacha.PostedFile.InputStream)
            {
                MemoryStream memoryStream = inputStream as MemoryStream;
                if (memoryStream == null)
                {
                    memoryStream = new MemoryStream();
                    inputStream.CopyTo(memoryStream);
                }
                zadacha.fileUpload = memoryStream.ToArray();
            }

            modulRep.addZadacha(zadacha);
            ss.addXml(zadacha);
            //ss.getObject();
            //return RedirectToAction("modul", "Home");
            return(PartialView("addZadacha"));
        }