public async Task <IActionResult> Delete(int id) { var result = await _services.Delete(id); return(result ? (IActionResult)Ok(result) : (IActionResult)BadRequest()); }