public async Task Update(RecordDTO record) { await _repository.Update(_mapper.Map <Record>(record)); }
public async Task Insert(RecordDTO record) { record.CreateDate = DateTime.Now; await _repository.Insert(_mapper.Map <Record>(record)); }