Click here to Skip to main content
15,851,090 members

Comments by taiwokaffo (Top 8 by date)

taiwokaffo 2-Apr-20 4:55am View    
thanks i really appreciate you..................not really looking at that.
taiwokaffo 14-May-18 14:32pm View    
Server Error in '/' Application.
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Vidly.Models.Customer]', but this dictionary requires a model item of type 'Vidly.ViewModels.RandomMovieViewModel'.
taiwokaffo 1-Nov-17 4:42am View    
this is what the code looks like

private Basket createNewBasket(HttpContextBase httpContext)
{

HttpCookie cookie = new HttpCookie(BasketSessionName);
Basket basket = new Basket();
basket.date = DateTime.Now;
basket.BasketId = Guid.NewGuid();

baskets.Insert(basket);
baskets.Commit();

cookie.Value = basket.BasketId.ToString();
cookie.Expires = DateTime.Now.AddDays(1);
httpContext.Response.Cookies.Add(cookie);

return basket;

}
and the basket model has the BasketId as an int with {get;set;}
taiwokaffo 1-Nov-17 4:29am View    
i really need to know i can have a Guid.NewGuid method have it values stored in a variable.
taiwokaffo 7-Dec-12 7:14am View    
Thanks a bunch sir for the insight given, is there anyway i can get the SDK if i dont have it as well as the documentation, from the look of things my company is no more interested in doing business with the former development partners.