コード例 #1
0
        // GET: Status
        public ActionResult Index()
        {
            Response.Cache.SetCacheability(HttpCacheability.NoCache);
            DAL_Status dStatus = new DAL_Status(MvcApplication.strConexao);
            var        vLista  = dStatus.ListarStatus(new Status());

            return(View(vLista));
        }
コード例 #2
0
        public PartialViewResult Edit(int idStatus)
        {
            var Status = new DAL_Status(MvcApplication.strConexao).ListarStatus(new Status()
            {
                idStatus = idStatus
            }).FirstOrDefault();

            return(PartialView(Status));
        }