コード例 #1
0
ファイル: jobController.cs プロジェクト: parineeti/CRM
        public ActionResult edittype(tbljobType model)
        {
            jobServices _services = new jobServices();
            var         msg       = _services.UpdatejobType(model.Description, model.Name, model.Id, model.IsActive.Value);

            if (msg.Contains("Error"))
            {
                ViewData["error"] = msg;
                return(View(model));
            }
            else
            {
                TempData["error"] = msg;
                return(RedirectToAction("JobTypeList"));
            }
        }