Exemplo n.º 1
0
        public ActionResult status(int?id)
        {
            tblstatus   _model    = new tblstatus();
            jobServices _services = new jobServices();

            if (id.HasValue)
            {
                _model = _services.GetStatusbyId(id.Value);
                return(View("editStatus", _model));
            }
            if (TempData["error"] != null)
            {
                ViewData["error"] = TempData["error"].ToString();
            }
            return(View(_model));
        }