public IHttpActionResult PutSlots(HttpRequestMessage request) { string TimeZoneID = "Pacific Standard Time"; Task <Stream> stm = request.Content.ReadAsStreamAsync(); // need to figure out how to pass this as a parameter TimeZoneInfo tzi = TimeZoneInfo.FindSystemTimeZoneById(TimeZoneID); if (tzi == null) { throw new Exception($"cannot load timezone {TimeZoneID}"); } stm.Wait(); RSR sr; sr = RwpSlots.ImportCsv(stm.Result, tzi); return(Ok(sr)); }
public RSR ImportCsvSlots(Stream stmCsv) { return(RwpSlots.ImportCsv(stmCsv)); }