public async Task <IActionResult> Delete(string Ids) { int Id; if (int.TryParse(Ids, out Id)) { await _service.DeleteActivity(Id); return(Ok()); } else { return(NotFound()); } }