Ejemplo n.º 1
0
 public void Create()
 {
     if (RetrieveByName(this.name).Count == 0)
     {
         CategoryDAL.Create(this);
     }
 }
Ejemplo n.º 2
0
 public static ObservableCollection <Category> RetrieveById(long id)
 {
     return(CategoryDAL.RetrieveById(id));
 }
Ejemplo n.º 3
0
 public static ObservableCollection <Category> RetrieveByName(string name)
 {
     return(CategoryDAL.RetrieveByName(name));
 }
Ejemplo n.º 4
0
 public static ObservableCollection <Category> RetrieveAll()
 {
     return(CategoryDAL.RetrieveAll());
 }
Ejemplo n.º 5
0
 public void Delete()
 {
     CategoryDAL.Delete(this);
 }
Ejemplo n.º 6
0
 public void Update()
 {
     CategoryDAL.Update(this);
 }
Ejemplo n.º 7
0
 public static void CreateTable()
 {
     CategoryDAL.CreateTable();
 }