private ApiResponse WhenTryPostAnonymously(ApiEmailTemplateSaveCommand command, string templateType, SetupData setup) { var json = JsonSerialiser.Serialise(command); var relativePath = string.Format("{0}/{1}", RelativePath, templateType); return(BusinessAnonymousPost <LocationData>(json, relativePath, setup)); }
protected void RegisterCustomCourseEmailTemplate(SetupData setup) { var command = new ApiEmailTemplateSaveCommand { subject = "Online Booking confirmation with <<BusinessName>>", body = GetCustomisedCustomerCourseBookingTemplateBody() }; WhenTryPost(command, Constants.EMAIL_TEMPLATE_ONLINE_BOOKING_CUSTOMER_COURSE, setup); }
protected ApiResponse WhenTryPost(ApiEmailTemplateSaveCommand command, string templateType, SetupData setup) { var json = JsonSerialiser.Serialise(command); return(WhenTryPost(json, templateType, setup)); }