public async Task Put([FromBody] Dats datos) {/* * byte[] bytes = Convert.FromBase64String(datos.content); * Stream zipStream = new MemoryStream(bytes); * var myStr = new StreamReader(zipStream).ReadToEnd(); * dynamic jsonObj = JsonConvert.DeserializeObject(myStr); * await _dataRep.putRepository(jsonObj, datos.mec);*/ }
public async Task Post([FromBody] Dats datos) { byte[] bytes = Convert.FromBase64String(datos.content); Stream zipStream = new MemoryStream(bytes); var myStr = new StreamReader(zipStream).ReadToEnd(); dynamic jsonObj = JsonConvert.DeserializeObject(myStr); //await _dataRep.postRepository(jsonObj,datos.mec); await _dataRep.postRepository(jsonObj); //await _dataRep.handleData(datos,"0"); //return Ok(new string[] { "value1", "value2" }); }
public async Task Put(string id, [FromBody] Dats datos) { //await _dataRep.handleData(datos,id); }