public ActionResult Create(CreateTodoViewModel model)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    using (var context = new ApplicationDbContext())
                    {
                        Todo todo = new Todo
                        {
                            Title = model.Title,
                            Description = model.Description,
                            DueDate = model.DueDate,
                            IsDone = false,
                            RealmID = model.RealmID
                        };

                        context.Todos.Add(todo);
                        var response = context.SaveChanges();

                        if (response > 0)
                            return RedirectToAction("Details", "Realms", new { id = model.RealmID, success = true });
                    }
                }

                ViewBag.ErrorMessage = "Erro na criação do contexto de tarefas";
                return View(model);
            }
            catch
            {
                ViewBag.ErrorMessage = "Erro na criação do contexto de tarefas";
                return View(model);
            }
        }
        // GET: Todos/Create
        public ActionResult Create(Guid realmId)
        {
            CreateTodoViewModel model = new CreateTodoViewModel()
            {
                RealmID = realmId,
                DueDate = DateTime.UtcNow.AddHours(-3)
            };

            return View(model);
        }