Listviews of Products and users
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
using AdventureWorks.EntityLayer;
|
||||
using AdventureWorks.ViewModelLayer.ViewModelClasses;
|
||||
using Common.Library;
|
||||
|
||||
namespace AdventureWorks.MAUI.CommandClasses
|
||||
{
|
||||
public class ProductViewModelCommands : ProductViewModel
|
||||
{
|
||||
#region Constructors
|
||||
public ProductViewModelCommands() : base()
|
||||
{
|
||||
}
|
||||
public ProductViewModelCommands(IRepository<Product> repo) : base(repo)
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
public void LoadProducts()
|
||||
{
|
||||
Get();
|
||||
}
|
||||
public void LoadProductById(int id)
|
||||
{
|
||||
ProductObject = Get(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user