public async Task <ActionResult> Put(QRCL qrcl) { context.Attach(qrcl).State = EntityState.Modified; await context.SaveChangesAsync(); return(NoContent()); }
public async Task <ActionResult <int> > Post(QRCL qrcl) { context.Add(qrcl); await context.SaveChangesAsync(); return(qrcl.QRCodeID); }
public async Task UpdateQRCode(QRCL qrcl) { var response = await httpService.Put(url, qrcl); if (!response.Success) { throw new ApplicationException(await response.GetBody()); } }