Example #1
0
 public void Edit(Category category)
 {
     if (category != null)
     {
         db.Entry(category).State = EntityState.Modified;
     }
 }
Example #2
0
 public void Add(int accountId, Category category)
 {
     var account = db.Accounts.Find(accountId);
     if (account != null)
     {
         if (category != null)
         {
             account.Categories.Add(category);
         }
     }
 }
Example #3
0
 public void Edit(Category category)
 {
     repository.Edit(category);
 }
Example #4
0
 public void Add(int accountId, Category category)
 {
     repository.Add(accountId, category);
 }