public static bool ResetDownload(long[] id) { try { return(CustomerDL.UpdateStatus(id, false)); } catch (Exception ex) { throw ex; } }
private static void DownloadCustomerPersoData(string persoData, long[] id) { //System.Web.HttpContext.Current.Response.Clear(); //System.Web.HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment; filename=log.txt"); //System.Web.HttpContext.Current.Response.AppendHeader("Content-Length", persoData.Length.ToString()); //System.Web.HttpContext.Current.Response.ContentType = "text/plain"; //System.Web.HttpContext.Current.Response.Write(persoData); //System.Web.HttpContext.Current.Response.Flush(); FileWriter.Write(persoData.ToString()); CustomerDL.UpdateStatus(id, true); }