public async Task <IActionResult> PostMThrmsinterviewSchedule([FromBody] MThrmsinterviewSchedule mThrmsinterviewSchedule)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.MThrmsinterviewSchedule.Add(mThrmsinterviewSchedule);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetMThrmsinterviewSchedule", new { id = mThrmsinterviewSchedule.MThrmsinterviewScheduleId }, mThrmsinterviewSchedule));
        }
        public async Task <IActionResult> PutMThrmsinterviewSchedule([FromRoute] long id, [FromBody] MThrmsinterviewSchedule mThrmsinterviewSchedule)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != mThrmsinterviewSchedule.MThrmsinterviewScheduleId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }