Ejemplo n.º 1
0
        public async Task <IActionResult> Put(int id, TagDTO tagDto)
        {
            try
            {
                var tag = _mapper.Map <Tags>(tagDto);
                tag.Tag_Id = id;

                await _tagsServices.Update(tag);

                var response = new GenericResponse <bool>(true);
                return(Ok(response));
            }
            catch (Exception ex)
            {
                throw new BusinessException(MessageCodes.PROPERTY_NO_VALID, GetErrorDescription(MessageCodes.PROPERTY_NO_VALID), ex.Message);
            }
        }