コード例 #1
0
        public async Task <IActionResult> PutClassInfo(int pk, qa_class classInfo)
        {
            if (pk != classInfo.qa_class_pk)
            {
                return(BadRequest());
            }

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

            return(NoContent());
        }
コード例 #2
0
        public async Task <IActionResult> PutUserInfo(int pk, qa_users userInfo)
        {
            if (Convert.ToInt32(pk) != userInfo.qa_users_pk)
            {
                return(BadRequest());
            }

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

            return(NoContent());
        }