示例#1
0
        public async Task <ActionResult> Put(QRCL qrcl)
        {
            context.Attach(qrcl).State = EntityState.Modified;
            await context.SaveChangesAsync();

            return(NoContent());
        }
示例#2
0
        public async Task <ActionResult <int> > Post(QRCL qrcl)
        {
            context.Add(qrcl);
            await context.SaveChangesAsync();

            return(qrcl.QRCodeID);
        }
示例#3
0
        public async Task UpdateQRCode(QRCL qrcl)
        {
            var response = await httpService.Put(url, qrcl);

            if (!response.Success)
            {
                throw new ApplicationException(await response.GetBody());
            }
        }