public void SettingCompleteMail(string List) { //get Authorization header HttpContext httpContext = HttpContext.Current; string authHeader = httpContext.Request.Headers["Authorization"]; Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader); if (auth.Message != "") { Context.Response.Clear(); Context.Response.ContentType = "application/json"; Context.Response.Flush(); Context.Response.Write(JsonConvert.SerializeObject(auth)); Context.Response.End(); } else { Controller.ControllerUsageInfoRegistrationList UsageInfoList = new Controller.ControllerUsageInfoRegistrationList(authHeader); MetaResponse response = UsageInfoList.SettingCompleteMail(List); Context.Response.Clear(); Context.Response.ContentType = "application/json"; Context.Response.Flush(); Context.Response.Write(JsonConvert.SerializeObject(response)); Context.Response.End(); } }
public void getUsageInformationRegistrationList(string COMPANY_NO_BOX, string COMPANY_NAME, string EDI_ACCOUNT, int OFFSET = 0, int LIMIT = 30) { //get Authorization header HttpContext httpContext = HttpContext.Current; string authHeader = httpContext.Request.Headers["Authorization"]; Response auth = Controller.ControllerCheckIn.CheckLogIn_forProcess(authHeader); if (auth.Message != "") { Context.Response.Clear(); Context.Response.ContentType = "application/json"; Context.Response.Flush(); Context.Response.Write(JsonConvert.SerializeObject(auth)); Context.Response.End(); } else { Controller.ControllerUsageInfoRegistrationList regList = new Controller.ControllerUsageInfoRegistrationList(); MetaResponse response = regList.getUsageInformationRegistrationList(COMPANY_NO_BOX, COMPANY_NAME, EDI_ACCOUNT, OFFSET, LIMIT); Context.Response.Clear(); Context.Response.ContentType = "application/json"; Context.Response.Flush(); Context.Response.Write(JsonConvert.SerializeObject(response)); Context.Response.End(); } }