public async Task <ActionResult <GlassSweeperBrush> > PostGlassSweeperBrush(GlassSweeperBrush glassSweeperBrush)
        {
            this.db.GlassSweeperBrushes.Add(glassSweeperBrush);
            await this.db.SaveChangesAsync();

            return(CreatedAtAction("GetGlassSweeperBrush", new { id = glassSweeperBrush.Id }, glassSweeperBrush));
        }
        public async Task <IActionResult> PutGlassSweeperBrush(int id, GlassSweeperBrush glassSweeperBrush)
        {
            if (id != glassSweeperBrush.Id)
            {
                return(BadRequest());
            }

            this.db.Entry(glassSweeperBrush).State = EntityState.Modified;

            try
            {
                await this.db.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!GlassSweeperBrushExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }