示例#1
0
 public virtual Task DeleteAsync(FileEntity entity)
 {
     return(Task.Run(() => Delete(entity)));
 }
示例#2
0
 public virtual void Delete(FileEntity entity)
 {
     _repository.Delete(entity);
 }
示例#3
0
 public virtual Task <FileEntity> AddAsync(FileEntity entity)
 {
     return(Task.FromResult(Add(entity)));
 }
示例#4
0
 public virtual FileEntity Add(FileEntity entity)
 {
     return(_repository.Add(entity));
 }
示例#5
0
 public virtual Task <FileEntity> UpdateAsync(FileEntity entity)
 {
     return(Task.FromResult(Update(entity)));
 }
示例#6
0
 public virtual FileEntity Update(FileEntity entity)
 {
     return(_repository.Update(entity));
 }