public IActionResult Delete([FromRoute] Guid courseEntityId) { var result = _courseLogic.Delete(courseEntityId); if (result == null) { return(NotFound()); } return(Ok(result)); }
public async Task <IActionResult> Delete(int id) { LogicResponse response = new LogicResponse(); response = _courseLogic.Delete(id); if (response.Success) { return(Ok(id)); } else { return(BadRequest(response.Message)); } }