public async Task <ActionResult <NmNotification> > PostNmNotification(NmNotification nmNotification)
        {
            _context.NmNotifications.Add(nmNotification);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetNmNotification", new { id = nmNotification.Id }, nmNotification));
        }
        public async Task <IActionResult> PutNmNotification(int id, NmNotification nmNotification)
        {
            if (id != nmNotification.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }