public string CancelUpdateLookupDescription(LookupDescription objLookupDescription) { var accEntry = _db.Entry(objLookupDescription); accEntry.CurrentValues.SetValues(accEntry.OriginalValues); accEntry.State = Microsoft.EntityFrameworkCore.EntityState.Unchanged; return("Cancel Update successfully"); }
public string CreateLookupDetail(LookupDescription objLookupDescription) { _db.LookupDescriptions.Add(objLookupDescription); _db.SaveChanges(); return("Save successfully"); }
public string DeleteLookupDescription(LookupDescription objLookupDescription) { _db.LookupDescriptions.Remove(objLookupDescription); _db.SaveChanges(); return("Update successfully"); }