public void Salvar()
        {
            ItemTask task = _itemTaskServico.Obter().SingleOrDefault(t => t.Titulo.Equals("Teste task 001")) ?? new ItemTask {
                Titulo = "Teste task 001"
            };

            _itemTaskServico.Salvar(task);

            Assert.IsTrue(task.Id > 0);
            Assert.AreEqual(task.Status, StatusTask.Normal);
            Assert.AreEqual(task.Titulo, "Teste task 001");
        }
        public JsonResult Salvar(List <ItemTask> Task)
        {
            string erro = string.Empty;

            try
            {
                _itemTaskServico.Salvar(Task);
            }
            catch (Exception ex)
            {
                erro = ex.Message;
            }

            return(Json(new
            {
                Erro = erro
            }, JsonRequestBehavior.AllowGet));
        }