public ActionResult DeleteShape(int shape_id, string username) { if (System.Web.HttpContext.Current.User.Identity.Name == username) { DashboardService.DeleteShape(shape_id); } object response = new { success = true }; return(Json(response, JsonRequestBehavior.AllowGet)); }