SaveObject() does not work

SaveObject() does not work

Old forum URL: forums.lhotka.net/forums/t/11957.aspx


fredg posted on Friday, April 26, 2013

Hi, I am working on a MVC website. After building BLL/DAL, from controller's Edit(HttpPost) the SaveObject(...) does not work(.i.e. not invoking the BLL layer). What is the possible cause?

        [HttpPost]
        public ActionResult DealEdit(string userId, Deal deal)
        {
            LoadProperty(deal, Deal.UserIdProperty, userId);
           
            if (SaveObject(deal, true))
                return RedirectToAction("Index");
            else
                return View();            
        }

 

 

 

 

 

 

 

 

 

 

 

Copyright (c) Marimer LLC