Exemplo n.º 1
0
        public PartialViewResult _EnterFishPartial(Models.FishModels.Fish fish)
        {
            //todo hook up to google maps somehow, let them place the location caught on a map if they are entering the fish on website.
            //See if there is some way to get gps location from a phone browser.

            return(PartialView("_EnterFishPartial"));
        }
Exemplo n.º 2
0
        //todo do this with json async, remember to do as much processing and validation as posible client side (javascript) so you arent paying for as many cpu cycles
        public ActionResult submitFish(Models.FishModels.Fish fish)
        {
            dbClass.EnterFish(fish);

            //todo if they entered a new species, add it to the species table and set a flag for this user in userOptions signaling this user has custom species.
            //todo animate this with so it is clear it worked and then refresh the list of fish below and highlight the newly added fish.

            return(RedirectToAction("EnterFish", "Fish"));
        }