public async Task <ActionResult <MdlxgUser> > PostMdlxgUser(MdlxgUser mdlxgUser)
        {
            _context.MdlxgUser.Add(mdlxgUser);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetMdlxgUser", new { id = mdlxgUser.Id }, mdlxgUser));
        }
        public async Task <IActionResult> PutMdlxgUser(long id, MdlxgUser mdlxgUser)
        {
            if (id != mdlxgUser.Id)
            {
                return(BadRequest());
            }

            _context.Entry(mdlxgUser).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!MdlxgUserExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }