Exemplo n.º 1
0
        public ActionResult UpdateForm(string keyValue1, string keyValue2)
        {
            HomeConfigEntity entity1 = homeConfigIBLL.GetEntity(keyValue1);
            HomeConfigEntity entity2 = homeConfigIBLL.GetEntity(keyValue2);

            if (entity1 != null && entity2 != null)
            {
                int sort = (int)entity1.F_Sort;
                entity1.F_Sort = entity2.F_Sort;
                entity2.F_Sort = sort;

                homeConfigIBLL.SaveEntity(entity1.F_Id, entity1);
                homeConfigIBLL.SaveEntity(entity2.F_Id, entity2);
            }

            return(Success("更新成功!"));
        }
Exemplo n.º 2
0
 public ActionResult SaveForm(string keyValue, HomeConfigEntity entity)
 {
     homeConfigIBLL.SaveEntity(keyValue, entity);
     return(SuccessString(entity.F_Id));
 }