public static ClaimEntity.Claim MapTo(this ClaimEngine.Contract.Claim c) { return(new ClaimEntity.Claim { Id = c.Id, ProductId = c.ProductId, IsCancelled = c.IsCancelled }); }
public static string ToView(this ClaimEngine.Contract.Claim c) { return(string.Format("Id:{0} Product:{1} Cancelled:{2}", c.Id, c.ProductId, c.IsCancelled)); }