I have two models RP and RPHistory as shown below they both contains same data, How can i combine them to create single list data from the two?
public class RP:
{
public int ID { get; set; }
public int RPID { get; set; }
public string Name { get; set; }
public int ProductID { get; set; }
}
I have the second modal as
public class RPHistory:
{
public int ID { get; set; }
public int RPID { get; set; }
public string Name { get; set; }
public int ProductID { get; set; }
}
I have this code to get data from RP:
var RPs = await Context.RP.Where(b => b.ProductID == request.ID).ToListAsync();
How can i join update the above code to include RPHistory?