public ActionResult Edit(ProjetoViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return PartialView(model);
            }

            var result = _projetoAppService.Update(ProjetoViewModel.ToDomainModel(model));
            if (!result.IsValid)
            {
                AddModelErrors(result);
                return PartialView(model);
            }

            var data = this._projetoAppService.All(true);

            return this.HtmlDialogResult(string.Empty, nameof(this.Index), data);
        }
 internal static Projeto ToDomainModel(ProjetoViewModel model)
 {
     return Mapper.Map<Projeto>(model);
 }