Ejemplo n.º 1
0
        public void AddObservation(AddObservationDto data)
        {
            var newItem = AutoMapper.Mapper.Map <AddObservationDto, Observation>(data);

            _unitOfWork.ObservationRepository.Add(newItem);
            _unitOfWork.Commit();
        }
 public static void AddObservation(AddObservationDto observationDto)
 {
     HttpClientExtenction.PostData(observationDto, string.Concat(_baseObservationDto, _addObservation));
 }
 public IActionResult AddObservation([FromBody] AddObservationDto observationDto)
 {
     _observationService.AddObservation(observationDto);
     return(Json(JsonResultData.Success()));
 }