예제 #1
0
 public static string Delete(string table, string id)
 {
     //SAction.Delete(table, "ID".ToWhere(id, false));
     SAction.Update(table, "ID".ToWhere(id, false), "IsUsing", "0");
     return(SJson.Success);
 }
예제 #2
0
        public static string Edit(NameValueCollection form)
        {
            var result = SAction.Update(TableNames.SysDepartment, SysDepartment.id.ToWhere(form["id"]), form);

            return(result ? SJson.Success : SJson.Error);
        }