public void AddResidentDoctor(AddResidentDoctorDto data) { var newItem = AutoMapper.Mapper.Map <AddResidentDoctorDto, ResidentDoctor>(data); _unitOfWork.ResidentDoctorRepository.Add(newItem); _unitOfWork.Commit(); }
public IActionResult AddResidentDoctor([FromBody] AddResidentDoctorDto residentDoctorDto) { _residentDoctorService.AddResidentDoctor(residentDoctorDto); return(Json(JsonResultData.Success())); }