public void SalvarMensagemContato(Newsletter newsletter) { if (!modelState.IsValid) { return; } ResultValidation retorno = serviceNewsletter.Salvar(newsletter); PreencherModelState(retorno); }
public void SaveNewsletter(Newsletter subscriptionNewsletter) { if (!modelState.IsValid) { return; } ResultValidation result = serviceNewsletter.Salvar(subscriptionNewsletter); FillModelState(result); }