public IHttpActionResult Edit()
        {
            var model = new EditProfileViewModel
            {
                FirstName = this.CurrentUser.FirstName,
                LastName = this.CurrentUser.LastName,
                Latitude = this.CurrentUser.Location.Latitude,
                Longitude = this.CurrentUser.Location.Longitude,
            };

            return this.Ok(model);
        }
        public IHttpActionResult Edit(EditProfileViewModel model)
        {
            if (model != null && ModelState.IsValid)
            {
                Mapper.Map<EditProfileViewModel, User>(model, this.CurrentUser);

                this.data.Users.Update(this.CurrentUser);
                this.data.SaveChanges();

                return this.Ok(model);
            }

            return this.BadRequest("Couldn't edit challenge.");
        }