Esempio n. 1
0
        public ActionResult Edit(Guid?id, Header Collection, string ischeck)
        {
            Collection.IsTure = ischeck == "on" ? true : false;

            if (!ModelState.IsValid)
            {
                Edit(id);
                return(View(Collection));
            }
            _iheaderService.Save(id, Collection);
            _iheaderService.Commit();

            return(RedirectToAction("Index"));
        }