public async Task <IActionResult> Edit(int id, [Bind("id,name")] Operations operations)
        {
            if (id != operations.id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    await _operationsService.Update(operations);
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!OperationsExists(operations.id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(operations));
        }