コード例 #1
0
        public async Task <ActionResult <hardware> > Posthardware(hardware u)
        {
            _context.hardware.Add(u);
            await _context.SaveChangesAsync();

            return(CreatedAtAction(nameof(Gethardware), new { id = u.Id }, u));
        }
コード例 #2
0
        public async Task <IActionResult> Puthardware(long id, hardware item)
        {
            if (id != item.Id)
            {
                return(BadRequest());
            }

            _context.Entry(item).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(NoContent());
        }
コード例 #3
0
ファイル: IBenchmarkFile.cs プロジェクト: Creepsky/creepHash
 select(algorithm: a, hardware: h);
コード例 #4
0
 public void AddHardware(hardware a)
 {
     utwk.GetRepository <hardware>().Add(a);
     utwk.Commit();
 }