コード例 #1
0
        public JsonResult GetSigleDataByID(int gid)
        {
            DivisionNumber temp = null;

            try
            {
                temp = myRepo.GetSingle_T_DivisionNumber(gid);
                return(Json(new { success = "200", data = temp }));
            }
            catch (Exception ex)
            {
                return(Json(new { success = "404", error = ex.ToString() }));
            }
        }
コード例 #2
0
 private void NumericBoxDivision_ValueChanged(object sender, EventArgs e) => labelDivisionNumber.Text = "disk is divided\r\ninto " + DivisionNumber.ToString() + " points";