public ActionResult Unfavorite(long id) { // Stop any cross-domain hacking by // requiring javascript request. if (!Request.IsAjaxRequest() || !User.Identity.IsAuthenticated) { return(Json(Status.UnAuthorized <long>())); } var status = listingAdapter.DeleteSavedBuilding(id, User.Identity.Name); return(Json(status)); }
public ActionResult UnFavorite(long buildingId, string email) { var result = listingAdapter.DeleteSavedBuilding(buildingId, email); return(this.NewtonJson(result)); }