0

I am add data in database working fine in local db but not working on live db and give me exception (Database operation expected to affect 1 row(s) but actually affected 0 row(s)) here is my code

var cal = new OutCall();
cal.PhoneNumberCalled = call.To;
cal.DateAdd = DateTime.Now;
cal.WorkerId = workerId;
            
_myDbContext.OutCalls.Add(cal);
                
_myDbContext.SaveChanges();
Markus
  • 20,838
  • 4
  • 31
  • 55
Jack
  • 1
  • 1

0 Answers0