Esempio n. 1
0
 public int AddStore(Store store, aspnet_User user)
 {
     store.UserID = user.UserId;
     webstoredata.Stores.InsertOnSubmit(store);
     webstoredata.SubmitChanges();
     return store.StoreID;
 }
Esempio n. 2
0
 public bool IsProductOwner(int productid, aspnet_User user)
 {
     var product = GetProduct(productid);
     if (product.Store.UserID == user.UserId) return true;
     else return false;
 }
Esempio n. 3
0
 partial void Deleteaspnet_User(aspnet_User instance);
Esempio n. 4
0
 partial void Updateaspnet_User(aspnet_User instance);
Esempio n. 5
0
 partial void Insertaspnet_User(aspnet_User instance);
Esempio n. 6
0
		private void detach_aspnet_Users(aspnet_User entity)
		{
			this.SendPropertyChanging();
			entity.aspnet_Application = null;
		}
Esempio n. 7
0
 public bool IsValidStore(int storeid, aspnet_User user)
 {
     var store = GetStore(storeid);
     if (store.UserID == user.UserId) return true;
     else return false;
 }