public async Task <ActionResult> DeleteStyle(int styleId) { try { await SongRepository.DeleteStyle(styleId); return(Ok(new ApiOKResponse("Record deleted"))); } catch (ApplicationException) { return(NotFound(new ApiResponse(404, "No style with that id"))); } }