Пример #1
0
        public IActionResult Edit(Guid id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            CtVet2 tmp = CtVet2DAL.GetById(id);

            if (tmp == null)
            {
                return(NotFound());
            }

            int    Y     = Convert.ToInt32(User.Claims.ToList().FirstOrDefault(x => x.Type == "reportDtYear").Value);
            int    M     = Convert.ToInt32(User.Claims.ToList().FirstOrDefault(x => x.Type == "reportDtMonth").Value);
            string KIDro = User.Claims.ToList().FirstOrDefault(x => x.Type == "KIDro").Value;

            ViewBag.repPerList = CtVet2DAL.RepPerListList(Y, M);
            ViewBag.KIDdivList = spDAL.KIDdivList(KIDro);
            ViewBag.KIDspcList = spDAL.KIDspcList();
            ViewBag.KIDdtpList = spDAL.KIDdtpList();

            ViewBag.Page = "CtVet2";
            return(View(tmp));
        }
Пример #2
0
        public IActionResult Delete(Guid id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            CtVet2 tmp = CtVet2DAL.GetById(id);

            if (tmp == null)
            {
                return(NotFound());
            }
            ViewBag.Page = "CtVet2";
            return(View(tmp));
        }