public JsonResult DeleteState(int id) { State state = serviceState.GetById(id); serviceState.Delete(state); serviceState.Commit(); return(Json("success", JsonRequestBehavior.AllowGet)); }