partial void Deleteitem(item instance);
 partial void Insertitem(item instance);
 partial void Updateitem(item instance);
        public JsonResult StoreBike(item item)
        {
            if (ContextManager.Current.UserKey == null)
                return Json(new { Success = true, LoggedIn = false });
            else
            {
                var context = new DAL.DataClassesDataContext();
                //var item = new DAL.DataClassesDataContext().items.Where(i => i.serial_no == serialNo).SingleOrDefault();
                item.user_key = ContextManager.Current.UserKey;
                context.items.InsertOnSubmit(item);
                context.SubmitChanges();

                HttpContext.Application["totalNumberOfBikesRegistered"] = Convert.ToInt32(HttpContext.Application["totalNumberOfBikesRegistered"]) + 1;

                return Json(new { Success = true, LoggedIn = true });
            }
        }