Ejemplo n.º 1
0
        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()));
 }