public async Task <IActionResult> DeleteProject(DeleteProjectDTO input) { try { await _projectService.DeleteProject(input); return(Ok("The process is success")); } catch (Exception) { return(BadRequest("An error occurred during the deleting process. Please try again !")); } }
public async Task DeleteProject(DeleteProjectDTO input) { await _repository.Delete(input.Id); }