// posts an item to the database
 public Task <int> SaveItemAsync(UserLoginSession item)
 {
     if (item.ID != 0)
     {
         return(Database.UpdateAsync(item));
     }
     else
     {
         return(Database.InsertAsync(item));
     }
 }
 // deletes an item from the database
 public Task <int> DeleteItemAsync(UserLoginSession item)
 {
     return(Database.DeleteAsync(item));
 }