public async Task <IActionResult> PutMstCms([FromRoute] int id, [FromBody] MstCms mstCms)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != mstCms.Cmsid)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PostMstCms([FromBody] MstCms mstCms)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.MstCms.Add(mstCms);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetMstCms", new { id = mstCms.Cmsid }, mstCms));
        }