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