public static Phone_codemodel GetNoteRecord(string openid, int comid) { var list = new Phone_codemodel(); using (var helper = new SqlHelper()) { list = new Phone_code(helper).GetNoteRecord1(openid, comid); return(list); } }
public static Phone_codemodel code_info(decimal phone, int comid, string openid) { var list = new Phone_codemodel(); using (var helper = new SqlHelper()) { list = new Phone_code(helper).codemodel(phone, comid, openid); return(list); } }
public static string upcode(decimal phone, decimal code, int comid, int sendnum, int codebool, string openid) { try { var pro = ""; using (var helper = new SqlHelper()) { pro = new Phone_code(helper).upphone(phone, code, comid, sendnum, codebool, openid); } return(JsonConvert.SerializeObject(new { type = 100, msg = pro })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); } }
public static string insertcode(decimal phone, decimal code, int comid, int num) { var pro = ""; using (var helper = new SqlHelper()) { pro = new Phone_code(helper).insertphone(phone, code, comid, num); } try { return(JsonConvert.SerializeObject(new { type = 100, msg = pro })); } catch (Exception ex) { pro = ex.Message; return(JsonConvert.SerializeObject(new { type = 1, msg = pro })); } }