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)); }
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)); }