public async Task <ActionResult> GetClosedItems() { var dbService = new DynamoDBService(); var xml = await dbService.GetItems("Closed"); return(Content(xml)); }
public async Task <ActionResult> PutReport() { var dbService = new DynamoDBService(); dbService.S3Report(); return(Content("Report was successfully sent to Amazon S3")); }
public async Task <ActionResult> AddRecord(string guide, string description, string status) { var dbService = new DynamoDBService(); var value = await dbService.AddNewRecord(description, guide, status); return(Content(value)); }
public async Task <ActionResult> Archive(string id) { var dbService = new DynamoDBService(); dbService.ArchiveItemEC(id); return(Content(id)); }
public async Task <ActionResult> ModRecord(string id, string status) { var dbService = new DynamoDBService(); var val = await dbService.ModStatus(id, status); return(Content(val)); }
public async Task <ActionResult> GetRecord(string id) { var dbService = new DynamoDBService(); var xml = await dbService.GetSingleItem(id); return(Content(xml)); }