public async Task <IActionResult> DeleteUserSettingAsync([FromRoute] int userSettingId) { try { if (userSettingId < 1) { return(StatusCode(StatusCodes.Status400BadRequest, "Invalid user setting id")); } await _userSettingService.DeleteUserSettingAsync(userSettingId).ConfigureAwait(false); return(Ok()); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }