Example #1
0
        public IActionResult Delete(Guid id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            CtVet1c tmp = CtVet1cDAL.GetById_CtVet1c(id);

            if (tmp == null)
            {
                return(NotFound());
            }
            ViewBag.Page = "CtVet1c";
            return(View(tmp));
        }
Example #2
0
        public IActionResult Edit(Guid id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            CtVet1c tmp = CtVet1cDAL.GetById_CtVet1c(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);

            ViewBag.RepMoList  = spDAL.RepMO1YearList(Y, M);
            ViewBag.KIDdivList = spDAL.KIDdivList(User.Claims.ToList().FirstOrDefault(x => x.Type == "KIDro").Value);
            ViewBag.KIDspcList = spDAL.KIDspcList();
            ViewBag.KIDdisList = spDAL.KIDdisList();
            ViewBag.KIDtrtList = spDAL.KIDtrtList();
            ViewBag.Page       = "CtVet1c";
            return(View(tmp));
        }