Skip to content

Instantly share code, notes, and snippets.

public struct Attempt<TFailure, TSuccess>
{
public bool Succeeded { get; set; }
public TFailure Failure { get; set; }
public TSuccess Success { get; set; }
public Attempt(TFailure failure)
{
this.Succeeded = false;
this.Failure = failure;
//IdentityContext
public int override SaveChanges()
{
//será feito um único commit, assim se a criação do usuário falhar não será incluido o anunciante
return 0;
}
public int SalvarAlteracoes()
{
base.SaveChanges();
using ServiceStack.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Redis
{
public interface ICacheManager<T>
public class Conta
{
public decimal Valor { get; set; }
public decimal? ValorDesconto { get; set; }
public DateTime DataVencimento { get; set; }
public string LinhaDigitavel { get; set; }
}
public interface IProvedorPagamento
{