public NotificationResult Salvar(Proficiencia_Arma entidade) { var notificationResult = new NotificationResult(); try { if (entidade.CodArma == 0) { notificationResult.Add(new NotificationError("Qtde. de produtos no Estoque inválido.", NotificationErrorType.USER)); } if (notificationResult.IsValid) { _proficiencia_Arma_Repositorio.Adicionar(entidade); notificationResult.Add("Produto cadastrado com sucesso."); } notificationResult.Result = entidade; return(notificationResult); } catch (Exception ex) { return(notificationResult.Add(new NotificationError(ex.Message))); } }
public string Excluir(Proficiencia_Arma entidade) { return(""); }
public string Excluir(Proficiencia_Arma entidade) { return(proficiencia_Arma_Servico.Excluir(entidade)); }
public NotificationResult Salvar(Proficiencia_Arma entidade) { return(proficiencia_Arma_Servico.Salvar(entidade)); }