public async Task <TypeGeneric> Update(TypeGenericDto obj)
        {
            TypeGeneric typeGeneric = await _typeGenericRepository.GetById(obj.TypeGenericId);

            _mapper.Map(obj, typeGeneric);

            typeGeneric.Validate(typeGeneric, new TypeGenericValidator());
            _notifications.AddNotifications(typeGeneric.ValidationResult);

            if (!_notifications.HasNotifications)
            {
                await Put(typeGeneric);
            }

            return(typeGeneric);
        }
        public async Task <ActionResult <string> > Put([FromBody] TypeGenericDto typeGenericDto)
        {
            _ = await _typeGenericService.Update(typeGenericDto);

            return(Response(typeGenericDto.TypeGenericId));
        }