public void InsertOrUpdate(ACR acr)
        {
            if(acr.ACRID==default(int))
               {
               _context.ACR.Add(acr);

               }

               else
               {

               _context.Entry(acr).State = EntityState.Modified;
               }
        }
            public void CanSaveAnyChangesAfterInsert()
            {
                // Try to save after inserting a new ACR
                ACR newACR = new ACR { ACR_Name = "ACR5", Summary = "This is to test ACR5", ApplicationId = 15, StatusId = 2, ApprovedBy = "Team4", AssigneeMapping = 0, CreatedBy = 4, CreatedDate = DateTime.Now, EndDate = DateTime.UtcNow.Add(TimeSpan.FromDays(30.00)), isActive = true, RaisedBy = 4 };
                int _intACRCount = this._acrRepository.FindAll().Count;
                Assert.AreEqual(4, _intACRCount); // Verify pre-insert count value
                this._acrRepository.InsertOrUpdate(newACR);

                // Recounting
                _intACRCount = this._acrRepository.FindAll().Count; // Verify post-insert count value
                Assert.AreEqual(5, _intACRCount);

                // Verify foe SAVE after INSERT
                ACR testACR = this._acrRepository.FindByACRName("ACR5");
                Assert.AreEqual(5, testACR.ACRID);
            }