public bool DeleteDoctor(DoctorDto doctor) { var entity = _DtoMapper.Map(doctor); return(_DoctorRepository.Delete(entity)); }
public void AddNewDoctor(DoctorDto doctor) { var entity = _DtoMapper.Map(doctor); _DoctorRepository.AddNew(entity); }
public Doctor Map(DoctorDto doctor) => _Mapper.Map <Doctor>(doctor);