public async Task <IActionResult> PutTemporaryOperationKind(int id, TemporaryOperationKind temporaryOperationKind)
        {
            if (id != temporaryOperationKind.Id)
            {
                return(BadRequest());
            }
            temporaryOperationKind.Status = true;
            _context.Entry(temporaryOperationKind).State = EntityState.Modified;

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

            return(Ok());
        }
        public async Task <ActionResult> PostTemporaryOperationKind(TemporaryOperationKind temporaryOperationKind)
        {
            temporaryOperationKind.Status = true;
            _context.TemporaryOperationKind.Add(temporaryOperationKind);
            await _context.SaveChangesAsync();

            return(StatusCode(201));
        }