public TemplateResponse(FileEntry Response) { this.Response = Response; Error = null; //this.Error = new FileEntry(); }
public TemplateResponse(ErrorEntry Error) { //this.Response = new FileEntry(); this.Error = Error; Response = null; /*string ErrorJson = JsonConvert.SerializeObject(Error, Formatting.Indented); * this.Error = new FileEntry("error.json", Convert.ToBase64String(Encoding.UTF8.GetBytes(ErrorJson)));*/ }