public Retorno InsereProjeto(CadastroProjeto projeto) { WS.ServiceLayer.ServiceLayer Service = new WS.ServiceLayer.ServiceLayer(); Retorno _Retorno = new Retorno(); try { #region Insere Projeto var Json = JsonConvert.SerializeObject(projeto, Newtonsoft.Json.Formatting.Indented, new Newtonsoft.Json.JsonSerializerSettings { NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore }); _Retorno = Service.Add("Projects", Json); #endregion } catch (Exception ex) { Log.Error(ex.Message); } finally { //Service.Logout(); } return(_Retorno); }
// Item do menu para criar projeto private void MenuCriarProjeto_Click(object sender, RoutedEventArgs e) { CadastroProjeto cad = new CadastroProjeto(); cad.Show(); }