예제 #1
0
 public int AddStore(Store store, aspnet_User user)
 {
     store.UserID = user.UserId;
     webstoredata.Stores.InsertOnSubmit(store);
     webstoredata.SubmitChanges();
     return store.StoreID;
 }
예제 #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;
 }
예제 #3
0
 partial void Deleteaspnet_User(aspnet_User instance);
예제 #4
0
 partial void Updateaspnet_User(aspnet_User instance);
예제 #5
0
 partial void Insertaspnet_User(aspnet_User instance);
예제 #6
0
		private void detach_aspnet_Users(aspnet_User entity)
		{
			this.SendPropertyChanging();
			entity.aspnet_Application = null;
		}
예제 #7
0
파일: StoreModels.cs 프로젝트: dlaico/CS362
 public bool IsValidStore(int storeid, aspnet_User user)
 {
     var store = GetStore(storeid);
     if (store.UserID == user.UserId) return true;
     else return false;
 }