public async Task <IActionResult> Post([FromBody] TypeTechnic typetechnic)
        {
            if (typetechnic == null)
            {
                return(BadRequest());
            } // if

            await _db.TypeTechnics.AddAsync(typetechnic);

            await _db.SaveChangesAsync();

            return(Ok(typetechnic));
        }
        public async Task <IActionResult> Put([FromBody] TypeTechnic typetechnic)
        {
            if (typetechnic == null)
            {
                return(BadRequest());
            } // if

            if (!await _db.TypeTechnics.AnyAsync(x => x.Id == typetechnic.Id))
            {
                return(NotFound());
            } // if

            _db.Update(typetechnic);
            await _db.SaveChangesAsync();

            return(Ok(typetechnic));
        }