//create a CTA to assign an expert slot public string createCTAForAssigningExpertSlot(ExpertTimeSlot slot) { if (user == null) { throw new Exception("Need a user and/or email to create a CTA"); } //put this in chat logic //"A case was created for us to add . . .. A Service Rep will " return("Customer Success ID: NBBDF8888"); }
//create a case to assign the slot public string createCaseForAssigningExpertSlot(ExpertTimeSlot slot) { if (user == null) { throw new Exception("Need a user and/or email to create a case"); } //put this in chat logic //"A case was created for us to add . . .. A Service Rep will " return("Service Case ID: DDDDFD999"); }
private ExpertTimeSlot[] mapExpertTimeSlots(DataSet ds) { if (ds == null || ds.Tables[0] == null) { return(null); } //create an array of same size ExpertTimeSlot[] slots = new ExpertTimeSlot[ds.Tables[0].Rows.Count]; int index = 0; foreach (DataRow dr in ds.Tables[0].Rows) { ExpertTimeSlot tl = new ExpertTimeSlot(); tl.CompanyId = (dr["CompanyId"] != DBNull.Value ? Convert.ToInt16(dr["CompanyId"]) : 0); tl.ExpSlotId = (dr["ExpertTimeSlotId"] != DBNull.Value ? Convert.ToInt16(dr["ExpertTimeSlotId"]) : 0); tl.ExpSlotDate = DateTime.Parse(dr["ExpertTimeSlotDate"].ToString()); tl.ExpSlotDesc = returnRealOrBlank(dr["ExpertTimeSlotDesc"] as string); tl.ExpSlotName = returnRealOrBlank(dr["ExpertTimeSlotName"] as string); int stype = (dr["ExpertTimeSlotType"] != DBNull.Value ? Convert.ToInt16(dr["ExpertTimeSlotType"]) : 0); if (stype == 1) { tl.ExpSlotType = "Webinar"; } if (stype == 2) { tl.ExpSlotType = "TrainingCourse"; } if (stype == 3) { tl.ExpSlotType = "ExpertSession"; } slots[index] = tl; index++; } return(slots); }
/// <summary> /// create a case to assign the slot /// </summary> /// <param name="userinput"></param> /// <param name="slot"></param> /// <returns></returns> public string createAssignExpertSlotCase(string userinput, ExpertTimeSlot slot) { return(createCase(userinput + slot.ToString(), "VCSM: User request sign up for on a expert slot.")); }
/// <summary> /// Create a case to ADD to thier subscription for the user /// </summary> /// <param name="userinput">this is what the user asks</param> /// <returns>a reference number to give back to the user</returns> public string createSignupTrainingCase(string userinput, ExpertTimeSlot trainingCourse) { return(createCase(userinput + " " + trainingCourse.ToString(), "VCSM: The user request to sign them up a training course")); }