I have a function that receives generic objects to save new data with EntityState.Added but I want to add that I return the object with its assigned id
public void addDataObject(object obj)
{
_dbContext.Entry((TEntity)obj).State = System.Data.Entity.EntityState.Added;
_dbContext.SaveChanges();
}