示例#1
0
        public ContentResult Edit(Supply supply)
        {
            string result = "{success:false,Id:1}";

            try
            {
                Supply row = dao.FindById(supply.Id);
                UpdateModel(row);
                dao.Update();

                result = "{success:true}";
            }
            catch { }

            return(new ContentResult
            {
                Content = result
            });
        }