public virtual Task DeleteAsync(FileEntity entity) { return(Task.Run(() => Delete(entity))); }
public virtual void Delete(FileEntity entity) { _repository.Delete(entity); }
public virtual Task <FileEntity> AddAsync(FileEntity entity) { return(Task.FromResult(Add(entity))); }
public virtual FileEntity Add(FileEntity entity) { return(_repository.Add(entity)); }
public virtual Task <FileEntity> UpdateAsync(FileEntity entity) { return(Task.FromResult(Update(entity))); }
public virtual FileEntity Update(FileEntity entity) { return(_repository.Update(entity)); }