public void Delete() { const int id = 2; var model = FunctionDao.Delete(id); Assert.IsNotNull(model); }
/// <summary> /// 删除功能信息 /// </summary> /// <param name="functioId">功能ID</param> /// <returns></returns> public Result Delete(int functioId) { int row = functiondao.Delete(functioId); if (row > 0) { return(Result.除成功); } else { return(Result.除失败); } }