public async Task <IActionResult> Remove(int id) { if (await _opportunityService.Remove(id)) { return(Response(code: 200)); } else { return(Response(code: 400)); } }
public IActionResult Delete(string id) { _opportunityService.Remove(id); return(Ok(new { message = $"Let's just pretend like I deleted that '{id}' thing for you..." })); }