public void AddCustomer(CustomerDto dto) { var entity = dto.ToModel <Customer>(); entity.AnswerTime = DateTime.Now; CustomerRepository.Insert(entity); }
public int Insert(Customer customer) { return(repo.Insert(customer)); }