Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how customized msg in jqgrid.but this code dont work

C#
public ActionResult Addtemp(typebaker postData)
       {
           string status = "";
              Classtypebaker _Classbaker = new Classtypebaker();
              //todo: Add temp to repository
              if (postData == null)
                  return Json(false);
              int baker = _Classbaker.checkbaker(postData.FNameTypeBaker);
              if (baker <= 0)
            {
                db.typebakers.Add(postData);
                db.SaveChanges();
                return Json(true);
            }
              else
              {

                  status = "this test";

                  return Json(new     {status},JsonRequestBehavior.AllowGet);

              }
            ///  return Json(true);
          }
Posted
Comments
CHill60 4-Jan-15 7:45am    
What do you mean by "don't work"? What happens?
saeed1364 4-Jan-15 8:17am    
don't work Means dont result (does not show anything.)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900