public ActionResult Create(Baller baller)
        {
            if (ModelState.IsValid)
            {
                db.Ballers.Add(baller);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(baller);
        }
        // PUT api/Ballers/5
        public HttpResponseMessage PutBaller(int id, Baller baller)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

            if (id != baller.Id)
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }

            db.Entry(baller).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                return Request.CreateErrorResponse(HttpStatusCode.NotFound, ex);
            }

            return Request.CreateResponse(HttpStatusCode.OK);
        }
        public IHttpActionResult PostBaller(Baller baller)
        {
            if (ModelState.IsValid)
            {
                baller.Location = DbGeography.FromText("POINT(" + baller.Longitude + "  " + baller.Latitude + ")");

                db.Ballers.Add(baller);
                db.SaveChanges();

                //HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, baller);
                //response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = baller.Id }));
                //return response;
                return Ok(baller);
            }
            else
            {
               // return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
                return BadRequest(ModelState);
            }
        }
 public ActionResult Edit(Baller baller)
 {
     if (ModelState.IsValid)
     {
         db.Entry(baller).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(baller);
 }