// DELETE: membertemperature/DeleteAllDataApiJson/id
        public async Task <IActionResult> DeleteAllDataApiJson(int id)
        {
            var temperatureId = await _Context.Temperature.FindAsync(id);

            if (temperatureId == null)
            {
                return(Json(new { success = false, message = "Data not found" }));
            }
            else
            {
                _Context.Temperature.Remove(temperatureId);
                await _Context.SaveChangesAsync();

                return(Json(new { success = true, message = "Member temperature successfully deleted!" }));
            }
        }