public async Task <IActionResult> PutPattern(int id, Pattern pattern)
 {
     if (id != pattern.Id)
     {
         return(BadRequest());
     }
     _context.ChangePrice(id, pattern.Price); ////
     try { await _context.SaveChangesAsync(); }
     catch (DbUpdateConcurrencyException)
     {
         if (!PatternExists(id))
         {
             return(NotFound());
         }
         else
         {
             throw;
         }
     }
     return(NoContent());
 }