Click here to Skip to main content
14,326,246 members
Rate this:
Please Sign up or sign in to vote.
See more:
  public class Transactions
    public long Id { get; set; }
    public string Url { set; get; }
    public bool? Showsender { get; set; }
    public virtual PaymentStatus PaymentStatusItem { get; set; }
    public string Trackingnumber { set; get; }
    public DateTime? Executiondatetime { set; get; }
    public virtual Account SourceAccount { set; get; }
    public virtual Account DestinationAccount { set; get; }
    public Decimal? Amount { set; get; }
    public string Currency { set; get; }
    public string Type { set; get; }
    public string Status { set; get; }
    public string Description { set; get; }
    public decimal? CurrentBalance { get; set; }
    public decimal? Balance { get; set; }
    public virtual TransactionType TransactionTypeItem { get; set; }
    public virtual  Account DestinationAccountItem { get; set; }
    public virtual Account SourceAccountItem { get; set; }

public bool Save(Transactions tran)
               return true;
           catch (Exception ex)


           return false;

What I have tried:

Problem when saving datain mvc5   "ex = {" An entity object can not be referenced by multiple instances of IEntityChangeTracker. "}

I tried but I couldn't find a solution to this problem ,please help.
F-ES Sitecore 27-Sep-19 4:53am
We can't tell from the code you have posted, the problem lies elsewhere in your code. Google the error message and look at the things that commonly cause it and see if your code is doing any of those things.
ZurdoDev 27-Sep-19 10:47am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100