Ejemplo n.º 1
0
 public void DeleteForm(ModuleDeleteInputDto deleteDto)
 {
     if (!string.IsNullOrEmpty(deleteDto.Id))
     {
         int count = _sysModuleRepository.Count(b => b.ParentId.Equals(deleteDto.Id));
         if (count > 0)
         {
         }
         else
         {
             _sysModuleRepository.Delete(deleteDto.Id);
         }
     }
 }
Ejemplo n.º 2
0
 public ActionResult DeleteForm(ModuleDeleteInputDto userDto)
 {
     _sysModuleApp.DeleteForm(userDto);
     return(Json(new { state = ResultType.success.ToString(), message = "删除成功!" }));
 }