示例#1
0
        public void AddResidentAnalyzes(AddResidentAnalyzesDto data)
        {
            var newResidentAnalyzes = AutoMapper.Mapper.Map <AddResidentAnalyzesDto, ResidentAnalyzes>(data);

            _unitOfWork.ResidentAnalyzesRepository.Add(newResidentAnalyzes);
            _unitOfWork.Commit();
        }
        public IActionResult AddResidentAnalyzes([FromBody] AddResidentAnalyzesDto data)
        {
            var userModel = User.GetUserModel();

            data.DoctorId = userModel.DoctorId.Value;

            _residentAnalyzesService.AddResidentAnalyzes(data);
            return(Json(JsonResultData.Success()));
        }