예제 #1
0
        // Ìí¼Ó
        public ContentResult Create(Supply supply)
        {
            string result = "{success:false,Id:0}";
            int    id     = dao.Create(supply);

            if (id > 0)
            {
                result = "{success:true,Id:" + id + "}";
            }
            return(new ContentResult
            {
                Content = result
            });
        }