Beispiel #1
0
        public ActionResult New(bp_Location location)
        {
            if (ModelState.IsValid)
            {
                System.Data.Objects.ObjectParameter locationId = new System.Data.Objects.ObjectParameter("locationId", Guid.Empty);
                db.bp_Location_Create(
                    locationId,
                    (Guid)Membership.GetUser().ProviderUserKey,
                    location.Latitude,
                    location.Longitude,
                    location.Address);

                return(RedirectToAction("Index"));
            }
            else
            {
                return(View(location));
            }
        }
Beispiel #2
0
        public ActionResult New()
        {
            bp_Location location = new bp_Location();

            return(View(location));
        }